PopBadNotice.cs 601 B

1234567891011121314151617181920212223242526272829
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. public class PopBadNotice : PopBase
  5. {
  6. [SerializeField]
  7. private TextMesh MText;
  8. protected override void Start()
  9. {
  10. base.Start();
  11. }
  12. //框体类型
  13. public override PopType MType { get { return PopType.BadConnecting; } }
  14. public override void Show()
  15. {
  16. this.gameObject.SetActive(true);
  17. }
  18. public override void Show(System.Object data)
  19. {
  20. this.MText.text = data as string;
  21. this.gameObject.SetActive(true);
  22. }
  23. }