Browse Source

结束回放,标签UI显示控制有问题

develop
曹衍涛 4 years ago
parent
commit
096aee90dd
  1. 17
      Assets/Scripts/Replay/NodeDetailShow.cs
  2. 2
      Assets/Scripts/Replay/ReplayManager.cs

17
Assets/Scripts/Replay/NodeDetailShow.cs

@ -39,16 +39,27 @@ public class NodeDetailShow : MonoBehaviour, IPointerClickHandler
{
detail.text = text;
time = 5;
control = true;
control = true;
}
public void OnPointerClick(PointerEventData eventData)
public void SetControl()
{
control = false;
TagShow.tagDetail.SetActive(false);
TagShow.tagMessage.SetActive(false);
TagShow.gameObject.SetActive(false);
gameObject.SetActive(false);
}
public void OnPointerClick(PointerEventData eventData)
{
TagShow.tagDetail.SetActive(false);
TagShow.tagMessage.SetActive(false);
TagShow.gameObject.SetActive(false);
if (transform.parent.name== "TopUI")
{
gameObject.SetActive(false);
}
control = false;
replayManager.Play();
}

2
Assets/Scripts/Replay/ReplayManager.cs

@ -97,7 +97,7 @@ public class ReplayManager : MonoBehaviour
tagManager.HideTagShow();
MessageDispatcher.SendMessage("ReplayStatusChanged", ReplayStatus);
//在结束播放的时候如果正在显示提示信息,结束倒计时并隐藏信息窗口
nodeDetailShow.GetComponent<NodeDetailShow>().control = false;
nodeDetailShow.GetComponent<NodeDetailShow>().SetControl();// = false;
nodeDetailShow.SetActive(false);
}

Loading…
Cancel
Save