Example #1
0
 protected virtual void Init()
 {
     goodsMetaInfoMations = DataCenter.Instance.GetMetaData <GoodsMetaInfoMations>();
     playerState          = DataCenter.Instance.GetEntity <PlayerState>();
     businessmanStates    = DataCenter.Instance.GetEntity <BusinessmanStates>();
     npcData           = DataCenter.Instance.GetMetaData <NPCData>();
     iGameState        = GameState.Instance.GetEntity <IGameState>();
     iInteractiveState = GameState.Instance.GetEntity <IInteractiveState>();
     iPlayerState      = GameState.Instance.GetEntity <IPlayerState>();
     uiShowTip.gameObject.SetActive(false);
 }
 public DataCenter()
 {
     PlayerState                = new PlayerState();
     KeyConatactData            = new KeyContactData();
     RuntimeTasks               = new RuntimeTasksData();
     gameRunnedState            = new GameRunnedState();
     RuntimeTaskMap             = new TaskMap.RunTimeTaskData();
     BusinessmanStates          = new BusinessmanStates();
     GameRunningStaetData       = new GameRunningStateData();
     ActionInteractiveStateData = new ActionInteractiveStateData();
     SceneStateDatas            = new SceneStateDatas();
 }