From 6cd3c00b0b1b0a76b690ad0d978ae265de43a371 Mon Sep 17 00:00:00 2001 From: chai <215380520@qq.com> Date: Tue, 13 Jun 2023 19:14:40 +0800 Subject: *misc --- .../Assets/Scripts/Phase/GamePhaseBase.cs | 35 ++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 WorldlineKeepers/Assets/Scripts/Phase/GamePhaseBase.cs (limited to 'WorldlineKeepers/Assets/Scripts/Phase/GamePhaseBase.cs') diff --git a/WorldlineKeepers/Assets/Scripts/Phase/GamePhaseBase.cs b/WorldlineKeepers/Assets/Scripts/Phase/GamePhaseBase.cs new file mode 100644 index 0000000..ddad500 --- /dev/null +++ b/WorldlineKeepers/Assets/Scripts/Phase/GamePhaseBase.cs @@ -0,0 +1,35 @@ +using Microsoft.Unity.VisualStudio.Editor; +using System.Collections; +using System.Collections.Generic; +using UnityEngine; +using UnityEngine.UI; + +namespace WK +{ + + public class GamePhaseBase : AsyncStatemachine.State + { + protected GamePhaseManager owner = GamePhaseManager.Instance; + + public override IEnumerator OnStart() + { + yield break; + } + + public override IEnumerator OnEnd() + { + yield break; + } + + public override void OnUpdate(float deltaTime) + { + } + + protected void GotoStage(EGamePhase target) + { + owner.AsyncLoadPhase(target); + } + + } + +} -- cgit v1.1-26-g67d0