private void Awake() { Events = new NoticesObserver(); mMapper = new StringIntValueList(); mUIAreaNotice = Pooling <ParamNotice <UIDisplay> > .From(); mUIAreaNotice.SetNoticeName(N_UI_AREA_CHANGED); }
public PlayerData() : base(Consts.D_PLAYER) { Events = new NoticesObserver(); Events.AddListener(N_GET_NEW_HEROS, OnGetNewHeros); ShipDockConsts.NOTICE_APPLICATION_CLOSE.Add(OnApplicationClose); Heros = new PlayerHerosController(); }
private void Awake() { Events = new NoticesObserver(); mChangedNotice = Pooling <ParamNotice <UIDisplay> > .From(); mChangedNotice.SetNoticeName(N_UI_DISPLAY_SELECTED); if (string.IsNullOrEmpty(m_GroupID)) { throw new Exception("UIDisplay group id do not allow empty."); } else { } }