Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using System.Collections;
- public class GameControl : MonoBehaviour {
- public static GameControl instance;
- public GameObject gameOverText;
- public bool gameOver = false;
- public float scrollSpeed = -1.5f;
- // Use this for initialization
- void Awake ()
- {
- if (instance == null)
- {
- instance = this;
- } else if (instance != this)
- {
- Destroy(gameObject);
- }
- }
- // Update is called once per frame
- void Update () {
- }
- public void BirdDied()
- {
- gameOverText.SetActive(true);
- gameOver = true;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement