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

Help. The Keyword Void Cannot Be Used In This Context

$
0
0
I Keep Geting This Error Here's My Code _________________________________________ using UnityEngine; using UnityEngine.SceneManagement; public class GameManager : MonoBehaviour { bool GameHasEnded = false; public void GameOver() { if (GameHasEnded == false) { GameHasEnded = true; Debug.Log("GameOver"); Restart(); } void Restart() { SceneManager.LoadScene(SceneManager.GetActiveScene().name); } } _____________________________________________________________________________ Plz Help Thanks

Viewing all articles
Browse latest Browse all 2891

Trending Articles



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