public void ResetGame()
 {
     EndScreen.SetActive(false);
     PauseScreen.SetActive(false);
     if (transform.childCount > 0)
     {
         Destroy(transform.GetChild(0).gameObject);
     }
     Instantiate(GamePrefab, transform);
     CurrentGame = FindObjectOfType <PachinkoGame>();
 }
 void Start()
 {
     controller = GameObject.Find("Controller").GetComponent <PachinkoGame>();
 }
Beispiel #3
0
 private void Start()
 {
     gameOwner = FindObjectOfType <PachinkoGame>();
 }