Exemple #1
0
 void OnDestroy()
 {
     if (_instance == this)
     {
         _instance = null;
     }
 }
Exemple #2
0
    void Start()
    {
        _instance = this;

        txt_header.text = header_text;
        btn_resume.gameObject.SetActive(show_btn_resume);
        btn_next.gameObject.SetActive(show_btn_next);
        btn_retry.gameObject.SetActive(show_btn_retry);
        btn_main_menu.gameObject.SetActive(show_btn_main_menu);

        txt_score.text = BattleManager.score.ToString();
    }