void Start() { _buffs = new Dictionary <BuffType, IBuff>(); _debuffs = new Dictionary <DebuffType, IDebuff>(); _msgMgr = GameUtil.GetSubMsgMgr(transform); _canBuffs = GetCanBuffs(); _canDebuffs = GetCanDebuffs(); AddListener(); }
public void Start(SubMsgMgr msgMgr) { _msgMgr = msgMgr; MessageMgr.Single.AddListener(MsgEvent.EVENT_GAME_EXP_LEVEL_UP, LevelUpByExp); MessageMgr.Single.DispatchMsg(MsgEvent.EVENT_GAME_UPDATE_LEVEL); _id = DelayDetalCoroutineMgr.Single.Start(TIME_ONCE, BeginCallBack, EndCallBack, _id); GameModel.Single.TempLevel++; }
// Use this for initialization private void Start() { _selfBullet = GetComponentInChildren <IBullet>(); _behaviour = GetComponent <IBehaviour>(); _msgMgr = GameUtil.GetSubMsgMgr(transform); }