コード例 #1
0
 void Start()
 {
     _buffs      = new Dictionary <BuffType, IBuff>();
     _debuffs    = new Dictionary <DebuffType, IDebuff>();
     _msgMgr     = GameUtil.GetSubMsgMgr(transform);
     _canBuffs   = GetCanBuffs();
     _canDebuffs = GetCanDebuffs();
     AddListener();
 }
コード例 #2
0
    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++;
    }
コード例 #3
0
 // Use this for initialization
 private void Start()
 {
     _selfBullet = GetComponentInChildren <IBullet>();
     _behaviour  = GetComponent <IBehaviour>();
     _msgMgr     = GameUtil.GetSubMsgMgr(transform);
 }