예제 #1
0
파일: DayComp.cs 프로젝트: A-Bun/TypeInTune
    // 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
파일: Shop.cs 프로젝트: A-Bun/TypeInTune
 public void SetMoney()
 {
     moneyText.text = "$" + pi.GetMoney();
 }