Beispiel #1
0
        private static void ApplicationStart()
        {
            EditorApplication.delayCall += () =>
            {
                Debug.Log("[MSS] [Editor] [Eases] Start binding...");
                Ease.ForEach((ease, path) => EasesMenu.AddItem(new GUIContent(path), false, () => _selectedTween.EaseFunc = ease));
                Debug.Log("[MSS] [Editor] [Eases] Binding done.");

                EasesMenu.AddSeparator(string.Empty);
                EasesMenu.AddItem(new GUIContent("Default"), false, () => _selectedTween.EaseFunc = Ease.DefaultFunc);
                EasesMenu.AddItem(new GUIContent("Linear"), false, () => _selectedTween.EaseFunc  = Ease.Linear);
            };
        }