コード例 #1
0
 public void StartClick(BaseEventData data)
 {
     MenuCanvas.SetActive(false);
     HUDCanvas.SetActive(true);
     Player.SetActive(true);
     Generator.SetActive(true);
     Score = 0;
     Player.GetComponent<Player>().Prepare();
     StartCoroutine("CountDown");
 }
コード例 #2
0
 public void ExitToMenuClick()
 {
     Time.timeScale = 1;
     DestroyObjects();
     PausePanel.SetActive(false);
     MenuCanvas.SetActive(true);
     HUDCanvas.SetActive(false);
     LostPanel.SetActive(false);
     Player.SetActive(false);
     Generator.SetActive(false);
 }
コード例 #3
0
 private void Start()
 {
     ScoreText = GameObject.Find("ScoreText").GetComponent<Text>();
     FinalScoreText = GameObject.Find("FinalScoreText").GetComponent<Text>();
     HighScoreText = GameObject.Find("HighScoreText").GetComponent<Text>();
     CountDownText = GameObject.Find("CountDownText").GetComponent<Text>();
     Objects = GameObject.Find("Objects");
     LostPanel = GameObject.Find("Lost");
     Player = GameObject.Find("Player");
     Player.SetActive(false);
     LostPanel.SetActive(false);
     HUDCanvas.SetActive(false);
     CountDownText.gameObject.SetActive(false);
     HighScore = PlayerPrefs.GetInt("HighScore", 0);
     Play = false;
 }
コード例 #4
0
ファイル: HUDHandler.cs プロジェクト: jenfor/LikeToLearn-1
 public void CloseInventor()
 {
     inventoryCanvas.SetActive(false);
     HUDCanvas.SetActive(true);
 }
コード例 #5
0
ファイル: HUDHandler.cs プロジェクト: jenfor/LikeToLearn-1
 public void OpenInvnetory()
 {
     inventoryCanvas.SetActive(true);
     HUDCanvas.SetActive(false);
 }