Exemplo n.º 1
0
 private void Start()
 {
     _villagerSpawnEachDayLikelyhood = LevelConfiguration.Instance.VillagerSpawnChance;
     _cellMapController = CellMapController.Instance;
     TimeController.Instance.RegisterCallback(NotificationType.OnDayPassed, OnDayPassed);
     StartCoroutine(LoadGame());
 }
Exemplo n.º 2
0
 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>();
 }
Exemplo n.º 3
0
 private void Start()
 {
     _cellMapController = CellMapController.Instance;
 }