123456789101112131415161718192021222324252627282930 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class PopMsg : PopBase
- {
- [SerializeField]
- private Game3DButton OkBtn;
- [SerializeField]
- private TextMesh MText;
- protected override void Start()
- {
- OkBtn.onClick.AddListener(OnClick);
- }
- //框体类型
- public override PopType MType { get { return PopType.Msg; } }
- public override void Show(System.Object data)
- {
- this.MText.text = data as string;
- base.Show();
- }
- private void OnClick()
- {
- this.Hide();
- }
- }
|