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

28 lines
463 B
C#

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);
}
}
}