summaryrefslogtreecommitdiff
path: root/WorldlineKeepers/Assets/Scripts/Phase/GamePhase_Dojo.cs
blob: 10dd785131ad396adaf1d59f816bcc82d64d1c5c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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)
        {

        }

    }

}