Esempio n. 1
0
        void NewElement()
        {
            AnimationStep step = (AnimationStep)target;

            Selection.activeGameObject = AnimationElement.CreateEmpty(step, AnimationHolderEditor.aeName).gameObject;
            AnimationHolderEditor.InitLists();
        }
Esempio n. 2
0
 void InitFromField()
 {
     element.InitObjects(new GameObject[] { objToInit });
     objToInit = null;
     AnimationHolderEditor.InitLists();
 }
Esempio n. 3
0
        /*{
         *  get { return element.animationStartDelay + element.animationLength; }
         *  set { element.animationLength = value - element.animationStartDelay; }
         * }*/

        void InitFromSelection()
        {
            GameObject[] objs = Selection.gameObjects;
            element.InitObjects(objs);
            AnimationHolderEditor.InitLists();
        }