radial menu work as expected

This commit is contained in:
2024-11-21 19:19:44 +02:00
parent 35837405a5
commit 992f31ad85
14 changed files with 762 additions and 222 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ public class RadialMenuItem : MonoBehaviour
{
var button = Instantiate(_radialMenuItemPrefab);
button.transform.SetParent(transform, false);
//button.transform.localScale *= 2;
float theta = (2 * Mathf.PI / actions.Count) * buttonsCount;
float posX = Mathf.Sin(theta);
float posY = Mathf.Cos(theta);