50 lines
1.3 KiB
C#
50 lines
1.3 KiB
C#
using UnityEngine;
|
|
|
|
public class TopPanel : MonoBehaviour
|
|
{
|
|
private void Start()
|
|
{
|
|
if (GameManager.Instance != null)
|
|
{
|
|
GameManager.Event.RegistEvent(EEventType.OnClickFullView, this.OnClickFullView);
|
|
GameManager.Event.RegistEvent(EEventType.OnReturnFullView, this.OnReturnFullView);
|
|
}
|
|
}
|
|
|
|
public void ClickMoveToStore_Heart()
|
|
{
|
|
//if (GamePanel.Instance.gameObject.activeInHierarchy == false)
|
|
{
|
|
CanvasControl.Ins.Go_Shop();
|
|
GameManager.Event.InvokeEvent(EEventType.MoveToStore_Heart);
|
|
}
|
|
}
|
|
|
|
public void ClickMoveToStore_Key()
|
|
{
|
|
//if (GamePanel.Instance.gameObject.activeInHierarchy == false)
|
|
{
|
|
CanvasControl.Ins.Go_Shop();
|
|
GameManager.Event.InvokeEvent(EEventType.MoveToStore_Key);
|
|
}
|
|
}
|
|
|
|
public void ClickSettingButton()
|
|
{
|
|
if (GameManager.UI.IsOpendPopup(EPopupType.SettingPopup) == false)
|
|
{
|
|
GameManager.Sound.PlaySFX(ESFXType.Button_Hit);
|
|
GameManager.UI.ShowNStackPopup(EPopupType.SettingPopup);
|
|
}
|
|
}
|
|
|
|
private void OnClickFullView(object huntingDataID, object huntingListDataID)
|
|
{
|
|
gameObject.SetActive(false);
|
|
}
|
|
|
|
private void OnReturnFullView()
|
|
{
|
|
gameObject.SetActive(true);
|
|
}
|
|
} |