static public AttackPointMgr init()
 {
     if (instacne == null)
     {
         instacne = new AttackPointMgr();
     }
     return(instacne);
 }
Esempio n. 2
0
        public static AttackPointMgr init()
        {
            bool flag = AttackPointMgr.instacne == null;

            if (flag)
            {
                AttackPointMgr.instacne = new AttackPointMgr();
            }
            return(AttackPointMgr.instacne);
        }
Esempio n. 3
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>();
 }
Esempio n. 4
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>();
        }