Exemple #1
0
        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);
        }
Exemple #2
0
 public EventGenerator()
 {
     _Config = ShanghaiConfig.Instance;
     _Model  = GameModel.Instance;
 }