Exemplo n.º 1
0
 void Start()
 {
     AttackPointMgr.init();
     //onAttackPointHandle = AttackPointMgr.instacne.onAttackHanle;
     //onAttackBeginHanle = AttackPointMgr.instacne.onAttackBeginHanle;
     onAttackShakeHandle = AttackPointMgr.instacne.onAttackShake;
     if (gameObject.name == "player(Clone)")
     {
         goUser = this.gameObject;
     }
     Object3DBehaviour obj = goUser.transform.parent.GetComponent <Object3DBehaviour>();
 }
Exemplo n.º 2
0
        private void Start()
        {
            AttackPointMgr.init();
            this.onAttackShakeHandle = new Action <float, int, float>(AttackPointMgr.instacne.onAttackShake);
            bool flag = base.gameObject.name == "player(Clone)";

            if (flag)
            {
                FightAniUserTempSC.goUser = base.gameObject;
            }
            Object3DBehaviour component = FightAniUserTempSC.goUser.transform.parent.GetComponent <Object3DBehaviour>();
        }