Quantcast
Channel: Questions in topic: "error message"
Viewing all articles
Browse latest Browse all 2891

error CS0118: `UnityEngine.Object.Destroy(UnityEngine.Object, float)' is a `method' but a `type' was expected problem

$
0
0
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; } }

Viewing all articles
Browse latest Browse all 2891

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>