Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using UnityEngine.UI;
- using UnityEngine.SceneManagement;
- public class Game : MonoBehaviour
- {
- public Text scoreText;
- private int score;
- public void OnClick()
- {
- score = score + 1;
- scoreText.text = "Счёт: " + score;
- if (score == 50) { SceneManager.LoadScene("Level1"); };
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement