备份CatanBuilding瘦身独立工程
This commit is contained in:
39
Assets/Scripts/UI/PartnerFishBowl/EventPartnerTips.cs
Normal file
39
Assets/Scripts/UI/PartnerFishBowl/EventPartnerTips.cs
Normal file
@@ -0,0 +1,39 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Drawing.Design;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
|
||||
public class EventPartnerTips : MonoBehaviour
|
||||
{
|
||||
[SerializeField] private Button btnClose;
|
||||
[SerializeField] private GameObject mainTip, buildBtnTip, buildTip;
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
btnClose.onClick.AddListener(() => gameObject.SetActive(false));
|
||||
}
|
||||
|
||||
public void ShowMainTip()
|
||||
{
|
||||
gameObject.SetActive(true);
|
||||
mainTip.SetActive(true);
|
||||
buildBtnTip.SetActive(false);
|
||||
buildTip.SetActive(false);
|
||||
}
|
||||
public void ShowBuildBtnTip()
|
||||
{
|
||||
gameObject.SetActive(true);
|
||||
mainTip.SetActive(false);
|
||||
buildBtnTip.SetActive(true);
|
||||
buildTip.SetActive(false);
|
||||
}
|
||||
public void ShowBuildTip()
|
||||
{
|
||||
gameObject.SetActive(true);
|
||||
mainTip.SetActive(false);
|
||||
buildBtnTip.SetActive(false);
|
||||
buildTip.SetActive(true);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user