static public AttackPointMgr init() { if (instacne == null) { instacne = new AttackPointMgr(); } return(instacne); }
public static AttackPointMgr init() { bool flag = AttackPointMgr.instacne == null; if (flag) { AttackPointMgr.instacne = new AttackPointMgr(); } return(AttackPointMgr.instacne); }
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>(); }
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>(); }