示例#1
0
 public CallbackManager(MicropolisUnityEngine engine)
 {
     _engine = engine;
     _engine.OnUpdateDate       += UpdateDate;
     _engine.OnUpdateFunds      += UpdateFunds;
     _engine.OnUpdateCityName   += UpdateCityName;
     _engine.OnUpdateEvaluation += UpdateEvaluation;
     _engine.OnSendMessage      += SendMessage;
 }
示例#2
0
 private void Awake()
 {
     _engine = MicropolisUnityEngine.CreateUnityEngine();
 }
示例#3
0
 /// <summary>
 /// Constructs the engine and hooks it up to the <see cref="Micropolis"/> engine.
 /// Also finds the <see cref="Tilemap"/> in the scene to do the drawing to.
 /// </summary>
 /// <param name="engine"></param>
 public TileManager(MicropolisUnityEngine engine)
 {
     _engine     = engine;
     _tileEngine = new TileEngine();
     _mapLayer   = GameObject.Find("MapLayer").GetComponent <Tilemap>();
 }