You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
746 B
33 lines
746 B
using System.Collections; |
|
using System.Collections.Generic; |
|
using UnityEngine; |
|
using UnityEngine.UI; |
|
using AX.MessageSystem; |
|
public class SendOO : MonoBehaviour { |
|
|
|
|
|
public static SendOO instance = null; |
|
|
|
private void Awake() |
|
{ |
|
if (instance == null) |
|
{ |
|
instance = this; |
|
} |
|
|
|
transform.Find("Sure").GetComponent<Button>().onClick.AddListener(SureBtn); |
|
transform.Find("Close").GetComponent<Button>().onClick.AddListener(CloseBtn); |
|
} |
|
public void SureBtn() |
|
{ |
|
MessageDispatcher.SendMessage("Operatinghints", (object)"发送成功"); |
|
gameObject.SetActive(false); |
|
} |
|
public void CloseBtn() |
|
{ |
|
|
|
gameObject.SetActive(false); |
|
} |
|
|
|
|
|
}
|
|
|