Beispiel #1
0
 private void SetKeyPrice()
 {
     if (money.GetMoney() < 5)
     {
         price = money.GetMoney();
     }
     else
     {
         price = 5;
     }
 }
Beispiel #2
0
 // Update is called once per frame
 void Update()
 {
     if (inside && Input.GetKeyDown("up") && player.GetHasDoorKey())
     {
         PlayerPrefs.SetInt("Money", money.GetMoney());
         myRenderer.sprite = openDoor;
         FindObjectOfType <Level>().LoadNextLevel();
     }
 }
Beispiel #3
0
 // Update is called once per frame
 void Update()
 {
     text.text = money.GetMoney().ToString();
 }