Example #1
0
    // Start is called before the first frame update
    void Start()
    {
        GameObject gameManagerObj = GameObject.Find("GameManager");

        gameStatusEnum   = GameObject.Find("GameManager").GetComponent <GameStatusEnum>();
        uiGameOverScript = GameObject.Find("GameManager").GetComponent <UI_GameOver>();
        startPosition    = this.transform.position;
        scoreCountScript = GameObject.Find("GameManager").GetComponent <ScoreCount>();
    }
Example #2
0
 private void Awake()
 {
     Instance = this;
     transform.Find("retryBtn").GetComponent <Button_UI>().ClickFunc = () => SceneManager.LoadScene(0);
     Hide();
 }