Beispiel #1
0
 void Start()
 {
     day += 1;
     if (day == 30)
     {
         //Win Game
     }
     if (day == 0)
     {
         firstDay();
     }
     else
     {
         CampEvent ce = consumeResources();
         campEvents = EventSystem.GetCampEvents(day, 5, 0);
         campEvents.Add(ce);
         foreach (CampEvent camp in campEvents)
         {
             ResourceInfo.addFoodStock(camp.food);
             ResourceInfo.addWaterStock(camp.water);
             ResourceInfo.addWoodStock(camp.wood);
         }
         increaseStamina();
         displayCampEvents();
         updateUI();
     }
 }
Beispiel #2
0
    public static void AddInventoryItemsToCampResource()
    {
        ResourceInfo.addFoodStock(num_food);
        ResourceInfo.addWaterStock(num_water);
        ResourceInfo.addWoodStock(num_wood);

        num_food = 0; num_water = 0; num_wood = 0;
    }
Beispiel #3
0
 void DailyConsumption()
 {
     ResourceInfo.addWaterStock(-waterConsumption);
     ResourceInfo.addFoodStock(-foodConsumption);
 }