Exemplo n.º 1
0
    void Awake()
    {
        if (frame <= 0)
        {
            frame = 30;
        }

        //测试
        CPlayer cPlayer1 = new CPlayer
        {
            //ModelName = "child_01",
            //ModelPath = "",
            //Team = 0,
        };

        GlobalGameData.GetGlobalGameData().m_BattleData.m_UnitList.Add(cPlayer1);
        CPlayer cPlayer2 = new CPlayer
        {
            //ModelName = "child_01",
            //ModelPath = "",
            //Team = 1,
        };

        GlobalGameData.GetGlobalGameData().m_BattleData.m_UnitList.Add(cPlayer2);
        m_TurnBased = new TurnBased();
        m_FrameTime = 1 / frame;
    }
Exemplo n.º 2
0
    public void ChangeScene1()
    {
        SceneManager.LoadScene(0);
        //Debug.Log("name = " + PlayerPrefs.GetString("name"));

        PlayerPrefs.SetString("name", "tom");
        Debug.Log("name = " + GlobalGameData.GetGlobalGameData().m_UserData.name);
    }
Exemplo n.º 3
0
 void LoadUnits()
 {
     m_UnitList = GlobalGameData.GetGlobalGameData().m_BattleData.m_UnitList;
 }