Beispiel #1
0
 private void buy()
 {
     if (UserUnlockable.getMoney() >= value)
     {
         UserUnlockable.addMoney(-value);
         UserUnlockable.changeActiveItem(itemIndex, true);
         bought       = true;
         valueUI.text = "OWNED";
     }
 }
Beispiel #2
0
 private void buy()
 {
     if (UserUnlockable.getMoney() >= value)
     {
         UserUnlockable.addMoney(-value);
         bought       = true;
         valueUI.text = "OWNED";
         UserUnlockable.saveWeapon(thisWeapon.getWeaponIndex(), true);
     }
 }
Beispiel #3
0
    private void OnEnable()
    {
        int money = UserUnlockable.getMoney();

        currentMoney.text = money.ToString();
    }
Beispiel #4
0
    private void simpleGameOver()
    {
        saveData();

        gameoverScreen.SetActive(true);
        gameoverScreen.transform.GetChild(0).GetComponent <TextMeshProUGUI>().text             = "TIME SURVIVED : " + ((int)gameTimer).ToString() + "s";
        gameoverScreen.transform.GetChild(1).GetChild(0).GetComponent <TextMeshProUGUI>().text = UserUnlockable.getMoney().ToString();
        camera.stopFollow();
    }