Exemplo n.º 1
0
 void OnDisable()
 {
     if (timeControl == null)
     {
         return;
     }
     //Debug.Log(timeControl);
     timeControl.OnDisable();
     timeControl = null;
     DestroyImmediate(baseEditor);
 }
 void OnDisable()
 {
     timeControl.OnDisable();
     timeControl = null;
     DestroyImmediate(baseEditor);
 }
 void OnEnable()
 {
     normalMat   = new Material(Shader.Find("Sprites/Default"));
     timeControl = new SpriteAnimationTimeControl(targets.Cast <AnimationClip>().ToArray());
 }
 void OnEnable()
 {
     normalMat = new Material(Shader.Find("Sprites/Default"));
     timeControl = new SpriteAnimationTimeControl(targets.Cast<AnimationClip>().ToArray());
 }
 void OnDisable()
 {
     timeControl.OnDisable();
     timeControl = null;
     DestroyImmediate(baseEditor);
 }