Beispiel #1
0
 void Start()
 {
     tokenText.text = "Tokens: " + tokenSystem.getTokens();
     if (tokenSystem.getTokens() >= TOKENS_REQUIRED)
     {
         PlayAgain.gameObject.SetActive(true);
     }
     else
     {
         PlayAgain.gameObject.SetActive(false);
     }
 }
Beispiel #2
0
 public void LoadBlockBreaker()
 {
     tokensRequired = BLOCK_BREAKER_COST;
     if (tokenSystem.getTokens() >= tokensRequired)
     {
         popUpText.text = "Would you like to play Block Breaker for " + BLOCK_BREAKER_COST + " tokens?";
         gameObject.transform.position = center;
         game = "Block Breaker";
     }
     else
     {
         NotEnoughTokens();
     }
 }
 // Update is called once per frame
 void Update()
 {
     if (text != null)
     {
         text.text = "Tokens: " + tokenSystem.getTokens().ToString();
     }
 }