コード例 #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
ファイル: MiroRing.cs プロジェクト: shacleff/LianQiClient
        public void Shrink()
        {
            ShrinkEveryRingBall();
            Invoke("ShrinkRingLine", 2.0f);
            //ShrinkRingLine ();

            MiroV1TimeToDie timeDie =
                gameObject.AddComponent <MiroV1TimeToDie> ();

            timeDie._LeftTime = 2.0f;

            _Shrink.Invoke(_RingObjTfs);
        }