TapLogin-Unity/Standalone/Runtime/Internal/UIBase.cs

28 lines
463 B
C#
Raw Normal View History

2023-07-20 14:07:06 +08:00
using UnityEngine;
namespace TapTap.Login.Internal
{
internal class UIBase : MonoBehaviour
{
public virtual void OnEnter()
{
}
public virtual void OnPause()
{
gameObject.SetActive(false);
}
public virtual void OnResume()
{
gameObject.SetActive(true);
}
public virtual void OnExit()
{
Destroy(gameObject);
}
}
}