Beispiel #1
0
        private void InvokeRoundChange()
        {
            string roundString = currentRound + "/" + myLevel.GetNumberOfRounds();

            PopUp_Mission_StackOfWood.OnRoundChange();
            RoundChanged?.Invoke(roundString, new EventArgs());
        }
Beispiel #2
0
    public void UpdateText()
    {
        round.text = RoundSystem.instance.currentRound.ToString();
        if (RoundSystem.instance.currentRound >= 10)
        {
            roundGoal.SetActive(true);
        }

        int value = PopUp_Mission_StackOfWood.GetTotalValue();

        wood.text = value.ToString();
        Debug.Log(value);
        if (value >= 15)
        {
            woodGoal.SetActive(true);
        }

        if (InventionStorage.IsAvailable(Invention.Fire))
        {
            fire.text = "1";
            fireGoal.SetActive(true);
        }
    }