private void Awake() { UIManagerGame.cs = this; base.gameObject.GetComponent <Vote_Dialog>().PostAwake(); base.gameObject.GetComponent <global::Ping>().PostAwake(); Vote_Dialog.cs.SetActive(false); }
public void ResetAll() { levelCount = 0; time = 0; score = 0; Reset(this); PlayerController.Get().ResetAll(); PlayerController.Get().transform.gameObject.SetActive(false); UIManagerGame.Get().transform.gameObject.SetActive(false); CameraController.Get().ResetPos(); }
private void Awake() { if (instance != null) { Destroy(gameObject); } else { instance = this; } }
private void Awake() { if (instance == null) { instance = this; } else if (instance != this) { Debug.Log("Instance already exists, destroying object!"); Destroy(this); } }
public void ActivateLevelPrefabs() { PlayerController.Get().transform.gameObject.SetActive(true); UIManagerGame.Get().transform.gameObject.SetActive(true); CameraController.Get().ResetPos(); }
public void DisableLevelPrefabs() { PlayerController.Get().transform.gameObject.SetActive(false); UIManagerGame.Get().transform.gameObject.SetActive(false); }