public CallbackManager(MicropolisUnityEngine engine) { _engine = engine; _engine.OnUpdateDate += UpdateDate; _engine.OnUpdateFunds += UpdateFunds; _engine.OnUpdateCityName += UpdateCityName; _engine.OnUpdateEvaluation += UpdateEvaluation; _engine.OnSendMessage += SendMessage; }
private void Awake() { _engine = MicropolisUnityEngine.CreateUnityEngine(); }
/// <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>(); }