public void Awake() { _Model = GameModel.Instance; _Config = ShanghaiConfig.Instance; _Generator = new EventGenerator(); // Update GUI Messenger <List <IntVect2> > .AddListener(Grid.Grid.EVENT_SET_PATH, OnSetPath); Messenger.AddListener(Grid.Grid.EVENT_MISSION_FAILED, OnMissionFailed); Messenger.AddListener(EVENT_GAME_START, OnGameStart); }
public EventGenerator() { _Config = ShanghaiConfig.Instance; _Model = GameModel.Instance; }