void NewElement() { AnimationStep step = (AnimationStep)target; Selection.activeGameObject = AnimationElement.CreateEmpty(step, AnimationHolderEditor.aeName).gameObject; AnimationHolderEditor.InitLists(); }
void InitFromField() { element.InitObjects(new GameObject[] { objToInit }); objToInit = null; AnimationHolderEditor.InitLists(); }
/*{ * get { return element.animationStartDelay + element.animationLength; } * set { element.animationLength = value - element.animationStartDelay; } * }*/ void InitFromSelection() { GameObject[] objs = Selection.gameObjects; element.InitObjects(objs); AnimationHolderEditor.InitLists(); }