private void Start() { _villagerSpawnEachDayLikelyhood = LevelConfiguration.Instance.VillagerSpawnChance; _cellMapController = CellMapController.Instance; TimeController.Instance.RegisterCallback(NotificationType.OnDayPassed, OnDayPassed); StartCoroutine(LoadGame()); }
private void Awake() { _villagerModel = GetComponent <VillagerModel>(); _cellMapController = CellMapController.Instance; _villagerModel.Rigidbody2D = GetComponent <Rigidbody2D>(); _villagerModel.Orders = new Queue <OrderType>(); _townModel = TownModel.Instance; _townController = TownController.Instance; _villagerNeeds = GetComponent <VillagerNeedsController>(); _villagerStateController = GetComponent <VillagerStateController>(); }
private void Start() { _cellMapController = CellMapController.Instance; }