Created
July 4, 2016 21:51
-
-
Save Magnagames/5297ece91c7ebbb7232df22c435eb01e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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