Пример #1
0
    // Start is called before the first frame update
    void Start()
    {
        day = player.GetDay();
        if (day == 0)
        {
            dayText.text = "Training Day Complete";
        }
        else
        {
            dayText.text = "Day " + day + " Complete";
        }
        totEarnings     = player.GetMoney();
        dayEarnings     = player.GetMoney() - player.GetPrevMoney();
        currTotEarnings = player.GetPrevMoney();

        dayText.gameObject.SetActive(false);
        dayEarningsText.gameObject.SetActive(false);
        totEarningsText.gameObject.SetActive(false);
        dayEarningsNum.gameObject.SetActive(false);
        totEarningsNum.gameObject.SetActive(false);
        clickToContinue.gameObject.SetActive(false);
    }
Пример #2
0
 public void SetMoney()
 {
     moneyText.text = "$" + pi.GetMoney();
 }