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

28 lines
463 B
C#
Raw Normal View History

2023-08-24 19:04:07 +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);
}
}
}