// Start is called before the first frame update private void Awake() { _webClient = GameObject.Find("GlobalScriptsText").GetComponent <CrocoWebClient>(); _animator = GetComponent <Animator>(); _scoreController = GameObject.Find("GlobalScriptsText").GetComponent <CrocoScoreController>(); GameOverText = GameObject.Find("GameOverText"); WinText = GameObject.Find("WinText"); GoBackText = GameObject.Find("GoBackText"); RetryText = GameObject.Find("RetryText"); GameOverText.SetActive(false); WinText.SetActive(false); GoBackText.SetActive(false); RetryText.SetActive(false); }
public void Awake() { _scoreController = GetComponent <CrocoScoreController>(); }