summaryrefslogtreecommitdiff
path: root/WorldlineKeepers/Assets/Scripts/Phase/GamePhase_Dojo.cs
diff options
context:
space:
mode:
authorchai <215380520@qq.com>2023-06-13 19:14:40 +0800
committerchai <215380520@qq.com>2023-06-13 19:14:40 +0800
commit6cd3c00b0b1b0a76b690ad0d978ae265de43a371 (patch)
tree1004e09d96a5a12841443b72adb44a90bbd8d2e7 /WorldlineKeepers/Assets/Scripts/Phase/GamePhase_Dojo.cs
parente8049efa4a0b462b04e3087402c8485c70432de9 (diff)
*misc
Diffstat (limited to 'WorldlineKeepers/Assets/Scripts/Phase/GamePhase_Dojo.cs')
-rw-r--r--WorldlineKeepers/Assets/Scripts/Phase/GamePhase_Dojo.cs51
1 files changed, 51 insertions, 0 deletions
diff --git a/WorldlineKeepers/Assets/Scripts/Phase/GamePhase_Dojo.cs b/WorldlineKeepers/Assets/Scripts/Phase/GamePhase_Dojo.cs
new file mode 100644
index 0000000..2b7acd7
--- /dev/null
+++ b/WorldlineKeepers/Assets/Scripts/Phase/GamePhase_Dojo.cs
@@ -0,0 +1,51 @@
+using LitJson;
+using System.Collections;
+using System.Collections.Generic;
+using UnityEngine;
+using WK.Data;
+
+namespace WK
+{
+
+ /// <summary>
+ /// ѵÁ·µÀ³¡
+ /// </summary>
+ public class GamePhase_Dojo : GamePhaseBase
+ {
+
+ public override IEnumerator<float> OnStart()
+ {
+ GameSceneManager.Instance.LoadScene(StaticDefine.Scene_Dojo);
+ while(!GameSceneManager.Instance.sceneOpt.isDone)
+ {
+ yield return 0f;
+ }
+ SceneMetadata stage = new SceneMetadata();
+ stage.tests = new List<string>()
+ {
+ "asdas","asdasd","asdsd"
+ };
+ stage.desc = new SceneDesc();
+ stage.desc.name = "namestage";
+ stage.desc.desc = "descddd";
+ stage.pos = new Vector3(1, 2, 3);
+ stage.count = 233;
+ string json = JsonMapper.ToJson(stage);
+ LogHelper.Log(json);
+ var s = JsonMapper.ToObject<SceneMetadata>(json);
+ Debug.Log(s.pos);
+ }
+
+ public override IEnumerator<float> OnEnd()
+ {
+ yield break;
+ }
+
+ public override void OnUpdate(float deltaTime)
+ {
+
+ }
+
+ }
+
+}