Beispiel #1
0
    /// <summary>
    /// 读取游戏存档数据并更新
    /// </summary>
    public void GetData()
    {
        FileInfo info = new FileInfo(Consts.DataPath);

        if (info.Exists)
        {
            GameData data = ToolsManager.GetData();
            model.PlayerIntegration        = data.m_playerIntegration;
            model.ComputerLeftIntegration  = data.m_computerLeftIntegration;
            model.ComputerRightIntegration = data.m_computerRightIntegration;
        }
    }