예제 #1
0
        override public void Scatter()
        {
            Lyu.ChildAnimCtrl animsCtrl = GetComponent <Lyu.ChildAnimCtrl> ();
            animsCtrl._AnimClipName = "Scatter";
            animsCtrl.PlayAnimByName();

            DetachFromMiroModels();
            MiroV1TimeToDie timeDier = GetComponent <MiroV1TimeToDie> ();

            timeDier.enabled = true;
        }
예제 #2
0
        override public void Shrink()
        {
            Lyu.ChildAnimCtrl animsCtrl = GetComponent <Lyu.ChildAnimCtrl> ();
            animsCtrl._AnimClipName = "Shrink";
            animsCtrl.PlayAnimByName();

            if (_bDieOnShrink)
            {
                MiroV1TimeToDie timeDie = GetComponent <MiroV1TimeToDie> ();
                timeDie.enabled = true;
            }
        }
예제 #3
0
        override public void TurnDynamics(bool bON)
        {
            Lyu.ChildAnimCtrl animCtrl = GetComponent <Lyu.ChildAnimCtrl> ();
            animCtrl.TurnAnimPlay(bON);

            foreach (var baryMgr in _baryMgrs)
            {
                baryMgr.TurnEnable(bON);
            }


            foreach (var rb in _rbs)
            {
                if (bON)
                {
                    rb.bodyType = RigidbodyType2D.Dynamic;
                }
                else
                {
                    rb.bodyType = RigidbodyType2D.Static;
                }
            }
        }