예제 #1
0
 private void Awake()
 {
     UIManagerGame.cs = this;
     base.gameObject.GetComponent <Vote_Dialog>().PostAwake();
     base.gameObject.GetComponent <global::Ping>().PostAwake();
     Vote_Dialog.cs.SetActive(false);
 }
예제 #2
0
 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();
 }
예제 #3
0
 private void Awake()
 {
     if (instance != null)
     {
         Destroy(gameObject);
     }
     else
     {
         instance = this;
     }
 }
예제 #4
0
 private void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
     else if (instance != this)
     {
         Debug.Log("Instance already exists, destroying object!");
         Destroy(this);
     }
 }
예제 #5
0
 public void ActivateLevelPrefabs()
 {
     PlayerController.Get().transform.gameObject.SetActive(true);
     UIManagerGame.Get().transform.gameObject.SetActive(true);
     CameraController.Get().ResetPos();
 }
예제 #6
0
 public void DisableLevelPrefabs()
 {
     PlayerController.Get().transform.gameObject.SetActive(false);
     UIManagerGame.Get().transform.gameObject.SetActive(false);
 }