UIGuideWindowClassTemplate.txt 475 B

123456789101112131415161718192021
  1. using UnityEngine;
  2. using System.Collections;
  3. using FrameWork.GuideSystem;
  4. public class GuideWindow : GuideWindowBase
  5. {
  6. public override void ShowTips(string content, Vector3 pos)
  7. {
  8. if(content != null && content != "")
  9. {
  10. SetActive("Tips", true);
  11. SetText("Text_tip", content);
  12. GetRectTransform("Tips").anchoredPosition3D = pos;
  13. }
  14. else
  15. {
  16. SetActive("Tips", false);
  17. }
  18. }
  19. }