コード例 #1
0
        public override void OnInspectorGUI()
        {
            DrawDefaultInspector();

            RadialMenu rMenu = (RadialMenu)target;

            if (GUILayout.Button("Regenerate Buttons"))
            {
                rMenu.RegenerateButtons();
            }
        }
コード例 #2
0
        private float currentAngle; //Keep track of angle for when we click

        private void Awake()
        {
            menu = GetComponent <RadialMenu>();

            Initialize();
        }