33 lines
907 B
C#
33 lines
907 B
C#
|
|
using UI.Core;
|
|||
|
|
|
|||
|
|
namespace Minigames.StatueDressup.UI
|
|||
|
|
{
|
|||
|
|
/// <summary>
|
|||
|
|
/// UIPage wrapper for the statue decoration play area.
|
|||
|
|
/// Simple stock page with no transition animations.
|
|||
|
|
/// </summary>
|
|||
|
|
public class PlayAreaPage : UIPage
|
|||
|
|
{
|
|||
|
|
protected override void DoTransitionIn(System.Action onComplete)
|
|||
|
|
{
|
|||
|
|
// Instant transition - just show
|
|||
|
|
gameObject.SetActive(true);
|
|||
|
|
onComplete?.Invoke();
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
protected override void DoTransitionOut(System.Action onComplete)
|
|||
|
|
{
|
|||
|
|
// Instant transition - just hide
|
|||
|
|
gameObject.SetActive(false);
|
|||
|
|
onComplete?.Invoke();
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public override void OnBackPressed()
|
|||
|
|
{
|
|||
|
|
// Play area is the root page - don't allow back navigation
|
|||
|
|
// Override if you want custom behavior (e.g., quit minigame)
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|