summaryrefslogtreecommitdiff
path: root/WorldlineKeepers/Assets/Scripts/Phase/GamePhaseBase.cs
diff options
context:
space:
mode:
Diffstat (limited to 'WorldlineKeepers/Assets/Scripts/Phase/GamePhaseBase.cs')
-rw-r--r--WorldlineKeepers/Assets/Scripts/Phase/GamePhaseBase.cs35
1 files changed, 35 insertions, 0 deletions
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<float> OnStart()
+ {
+ yield break;
+ }
+
+ public override IEnumerator<float> OnEnd()
+ {
+ yield break;
+ }
+
+ public override void OnUpdate(float deltaTime)
+ {
+ }
+
+ protected void GotoStage(EGamePhase target)
+ {
+ owner.AsyncLoadPhase(target);
+ }
+
+ }
+
+}