Example #1
0
 private void Win()
 {
     if (killpoint >= 5)
     {
         WinORlose.text   = "You Win";
         killText.text    = killpoint.ToString();
         coinText.text    = Coinpoint.ToString();
         diamondText.text = Diamondpoint.ToString();
         StartCoroutine(Spawntime_for_winORlose());
         cam1.Priority = 8;
     }
 }
Example #2
0
 private void GameoverUI()
 {
     if (PlayerHealth_point <= 0)
     {
         WinORlose.text   = "Try Again";
         killText.text    = killpoint.ToString();
         coinText.text    = Coinpoint.ToString();
         diamondText.text = Diamondpoint.ToString();
         StartCoroutine(Spawntime_for_winORlose());
         cam1.Priority = 8;
     }
 }