Ejemplo n.º 1
0
 private void End()
 {
     FirstPersonController.Instance.GetComponent <FirstPersonController>().enabled = true;
     TTUIPage.ShowPage <UIIntroduceBtn>();
     TTUIPage.ShowPage <UITip>();
     UITip.Instance.SetTip("请点击器材认知。");
     TTUIPage.ClosePage(this);
 }
Ejemplo n.º 2
0
 public void Yanshao()
 {
     MainScene.Instance.scene = "YSYB";
     MainScene.Instance.yanshao.SetActive(true);
     TTUIPage.ClosePage(this);
     TTUIPage.ShowPage <UISingleBtn>();
     TTUIPage.ShowPage <UITip>();
     UITip.Instance.SetTip("点击帮助按钮,查看操作说明,控制人物进入实验室。");
     UISingleBtn.Instance.transform.Find("HelpBtn").gameObject.SetActive(true);
 }
Ejemplo n.º 3
0
 public void ShowInfo(Button btn)
 {
     TTUIPage.ShowPage <UIIntroduce>();
     btn.interactable = false;
     UIIntroduce.Instance.ChangeInfo(btn.transform.Find("name").GetComponent <Text>().text, btn.transform.Find("info").GetComponent <Text>().text, btn.name);
     foreach (Button item in buttons)
     {
         if (item.interactable == true)
         {
             return;
         }
     }
     UITitle.Instance.transform.Find("StartBtn").gameObject.SetActive(true);
     btn.interactable = false;
 }
Ejemplo n.º 4
0
 public override void Awake(GameObject go)
 {
     transform.Find("Paiyankou").GetComponent <Button>().onClick.AddListener(() => {
         UIManager.Instance.transform.Find("Cam").position    = UIManager.Instance.transform.Find("Pos/Paiyankou").position;
         UIManager.Instance.transform.Find("Cam").eulerAngles = UIManager.Instance.transform.Find("Pos/Paiyankou").eulerAngles;
         TTUIPage.ShowPage <UITip>();
         UITip.Instance.SetTip("请点击电窑上的排烟口,进入知识点考核");
     });
     transform.Find("Guanhuokou").GetComponent <Button>().onClick.AddListener(() => {
         UIManager.Instance.transform.Find("Cam").position    = UIManager.Instance.transform.Find("Pos/Guanhuokou").position;
         UIManager.Instance.transform.Find("Cam").eulerAngles = UIManager.Instance.transform.Find("Pos/Guanhuokou").eulerAngles;
         TTUIPage.ShowPage <UITip>();
         UITip.Instance.SetTip("请点击电窑上的观火口,进入知识点考核");
     });
     transform.Find("Touliaokou").GetComponent <Button>().onClick.AddListener(() => {
         UIManager.Instance.transform.Find("Cam").position    = UIManager.Instance.transform.Find("Pos/Touliaokou").position;
         UIManager.Instance.transform.Find("Cam").eulerAngles = UIManager.Instance.transform.Find("Pos/Touliaokou").eulerAngles;
         TTUIPage.ShowPage <UITip>();
         UITip.Instance.SetTip("请点击电窑上的投料口,进入知识点考核");
     });
 }