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

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