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

        currentMoney.text = money.ToString();
    }
    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();
    }