Skip to content

Instantly share code, notes, and snippets.

@Magnagames
Created July 4, 2016 21:51
Show Gist options
  • Save Magnagames/5297ece91c7ebbb7232df22c435eb01e to your computer and use it in GitHub Desktop.
Save Magnagames/5297ece91c7ebbb7232df22c435eb01e to your computer and use it in GitHub Desktop.
using UnityEngine;
using System.Collections;
public class GameDataUser : MonoBehaviour {
void Start () {
Debug.Log ("前回セーブしたPlayerのレベルは" + GameData.Player.Level);
GameData.Player.Level = 50;
GameData.Save ();
GameData.Player.Level = 99;
Debug.Log ("このPlayerのレベルは" + GameData.Player.Level + "セーブは実行されません。");
}
// Update is called once per frame
void Update () {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment