Example #1
0
        void NewElement()
        {
            AnimationStep step = (AnimationStep)target;

            Selection.activeGameObject = AnimationElement.CreateEmpty(step, AnimationHolderEditor.aeName).gameObject;
            AnimationHolderEditor.InitLists();
        }
Example #2
0
 void InitFromField()
 {
     element.InitObjects(new GameObject[] { objToInit });
     objToInit = null;
     AnimationHolderEditor.InitLists();
 }
Example #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();
        }