Пример #1
0
    void StartGathering()
    {
        titleText.SetText("A Natural Selection...\n\n\nLoading World");

        TimeControl.StartTimer(.1f, () =>
        {
            foodGathered = 0;
            timeLeft     = startingTime;
            onTimeTick.Invoke(timeLeft);
            onFoodGathered.Invoke(foodGathered, foodRequirement);
            player.GetComponent <Health>().RestoreHealth(999);
            MapManager.instance.GenerateMap(mapSize, 10);
        });
    }
Пример #2
0
 public void TimeTick()
 {
     if (TimeTickEvent != null)
     {
         TimeTickEvent.Invoke();
     }
 }