override public void Scatter() { Lyu.ChildAnimCtrl animsCtrl = GetComponent <Lyu.ChildAnimCtrl> (); animsCtrl._AnimClipName = "Scatter"; animsCtrl.PlayAnimByName(); DetachFromMiroModels(); MiroV1TimeToDie timeDier = GetComponent <MiroV1TimeToDie> (); timeDier.enabled = true; }
override public void Shrink() { Lyu.ChildAnimCtrl animsCtrl = GetComponent <Lyu.ChildAnimCtrl> (); animsCtrl._AnimClipName = "Shrink"; animsCtrl.PlayAnimByName(); if (_bDieOnShrink) { MiroV1TimeToDie timeDie = GetComponent <MiroV1TimeToDie> (); timeDie.enabled = true; } }
public void Shrink() { ShrinkEveryRingBall(); Invoke("ShrinkRingLine", 2.0f); //ShrinkRingLine (); MiroV1TimeToDie timeDie = gameObject.AddComponent <MiroV1TimeToDie> (); timeDie._LeftTime = 2.0f; _Shrink.Invoke(_RingObjTfs); }