public void Start() { _instance = this; coin = 0; Time.timeScale = 0f; startTime = Time.realtimeSinceStartup; playerController = GameObject.FindObjectOfType <PlayerController>(); playerController.OnPlayerEvent += Deneme; Starter(); }
public void Start() { panelManagement = GameObject.FindObjectOfType <MenuControlEndless>(); panelManagement.ChangePanel += ChangePanel; startTime = Time.time; pauseMenuUI.SetActive(false); gamePanel.SetActive(false); dieMenuUI.SetActive(false); finishMenuUI.SetActive(false); themaChooser.SetActive(true); }
public void Start() { panelManagement = GameObject.FindObjectOfType <MenuControlEndless>(); panelManagement.ChangePanel += ChangePanel; }