using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class GameControl : MonoBehaviour {
public static GameControl instance;
public GameObject GameOverText;
public bool GameOver = false;
// Use this for initialization
void Awake()
{
if (instance == null)
{
instance = this;
}
else if (instance != this)
{
new Destroy(GameObject);
}
}
// Update is called once per frame
void Update() {
}
public void PlaneDied()
{
GameOverText.SetActive (true);
GameOver = true;
}
}
↧