示例#1
0
 void Update()
 {
     if (Input.GetKeyDown(KeyCode.Space))
     {
         Debug.Log(Tips.GetRandomTip());
     }
 }
示例#2
0
    public IEnumerator ShowTips()
    {
        while (true)
        {
            string str = Tips.GetRandomTip();
            TipText.text = str;
            yield return(StartCoroutine(SizeTip(true)));

            yield return(new WaitForSeconds(5));

            yield return(StartCoroutine(SizeTip(false)));
        }
    }
示例#3
0
 public void PauseButtonClicked()
 {
     AudioManager.instance.Play("Click");
     if (_manager.isGameFinished)
     {
         return;
     }
     if (_manager.isGamePaused)
     {
         pausePanel.SetActive(false);
         _manager.ContinueGame();
     }
     else
     {
         pausePanel.SetActive(true);
         _manager.PauseGame();
         tip.GetComponent <TextMeshProUGUI>().text = "Tip: \n" + Tips.GetRandomTip();
     }
 }