예제 #1
0
    // 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);
    }
예제 #2
0
 public void Awake()
 {
     _scoreController = GetComponent <CrocoScoreController>();
 }