GuideWindow.cs 660 B

12345678910111213141516171819202122232425262728293031
  1. using UnityEngine;
  2. using System.Collections;
  3. using FrameWork.GuideSystem;
  4. public class GuideWindow : GuideWindowBase
  5. {
  6. public override void OnInit()
  7. {
  8. AddOnClickListener("mask", OnClickMask);
  9. }
  10. void OnClickMask(InputUIOnClickEvent e)
  11. {
  12. Debug.Log("clickMask");
  13. }
  14. public override void ShowTips(string content, Vector3 pos)
  15. {
  16. if(content != null && content != "")
  17. {
  18. SetActive("Tips", true);
  19. SetText("Text_tip", content);
  20. GetRectTransform("Tips").anchoredPosition3D = pos;
  21. }
  22. else
  23. {
  24. SetActive("Tips", false);
  25. }
  26. }
  27. }