HunterGameSettleView.cs 527 B

12345678910111213141516171819
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using UnityEngine.UI;
  5. using UnityEngine.SceneManagement;
  6. public class HunterGameSettleView : MonoBehaviour
  7. {
  8. // Start is called before the first frame update
  9. void Start()
  10. {
  11. GameMode gameMode = GameMgr.ins.gameMode;
  12. this.transform.Find("Res").GetComponent<Text>().text = gameMode.Settle()[0].ToString();
  13. }
  14. public void TryAgain() {
  15. SceneManager.LoadScene("GameChallenge", LoadSceneMode.Single);
  16. }
  17. }