示例#1
0
        public static void NewGMData(string dynastyName, string yearName, string emperorName)
        {
            GMControll.Init();
            Inist = new GMData(dynastyName, yearName, emperorName);
            Inist.Initializer();

            isInited = true;
        }
示例#2
0
        public static void Load()
        {
            Debug.Log("Load:" + savePath);

            string json = File.ReadAllText(savePath + "/game.save");

            JsonSerializer serializer = new JsonSerializer();
            StringReader   sr         = new StringReader(json);

            GMControll.Init();
            Inist = serializer.Deserialize(new JsonTextReader(sr), typeof(GMData)) as GMData;
            Inist.Initializer();

            isInited = true;

            Debug.Log("GMData Load");
        }