|
|
@ -4,7 +4,7 @@ using System.Collections.Generic; |
|
|
|
using UnityEngine; |
|
|
|
using UnityEngine; |
|
|
|
using AX.MessageSystem; |
|
|
|
using AX.MessageSystem; |
|
|
|
using System; |
|
|
|
using System; |
|
|
|
|
|
|
|
using UnityEngine.UI; |
|
|
|
public class UIShow : MonoBehaviour { |
|
|
|
public class UIShow : MonoBehaviour { |
|
|
|
|
|
|
|
|
|
|
|
public GameObject BG; |
|
|
|
public GameObject BG; |
|
|
@ -43,6 +43,7 @@ public class UIShow : MonoBehaviour { |
|
|
|
SightPlantController.Instace.SetPlantAndCanvasPos(); |
|
|
|
SightPlantController.Instace.SetPlantAndCanvasPos(); |
|
|
|
MessageDispatcher.SendMessage("InteractUI", true); |
|
|
|
MessageDispatcher.SendMessage("InteractUI", true); |
|
|
|
BG.gameObject.SetActive(true); |
|
|
|
BG.gameObject.SetActive(true); |
|
|
|
|
|
|
|
BG.transform.Find("DismantalPanel/InfoShowPanel/Text").GetComponent<Text>().text = ""; |
|
|
|
StartCoroutine(waitfornext()); |
|
|
|
StartCoroutine(waitfornext()); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -66,6 +67,7 @@ public class UIShow : MonoBehaviour { |
|
|
|
{ |
|
|
|
{ |
|
|
|
MessageDispatcher.SendMessage("InteractUI", true); |
|
|
|
MessageDispatcher.SendMessage("InteractUI", true); |
|
|
|
BG.gameObject.SetActive(true); |
|
|
|
BG.gameObject.SetActive(true); |
|
|
|
|
|
|
|
BG.transform.Find("DismantalPanel/InfoShowPanel/Text").GetComponent<Text>().text = ""; |
|
|
|
StartCoroutine(waitfornext()); |
|
|
|
StartCoroutine(waitfornext()); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|