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>(); }
private void Start() { gameOwner = FindObjectOfType <PachinkoGame>(); }