radial menu work as expected
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user