diff options
Diffstat (limited to 'WorldlineKeepers/Assets/Scripts/Phase/GamePhase_Dojo.cs')
-rw-r--r-- | WorldlineKeepers/Assets/Scripts/Phase/GamePhase_Dojo.cs | 51 |
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) + { + + } + + } + +} |