void Start() { mySpriteRenderer = this.GetComponent <SpriteRenderer> (); status = CS_GameSave.LoadGame("stage" + myStage, "level" + myLevel); mySpriteRenderer.sprite = spriteList [int.Parse(status)]; //Debug.Log ("stage" + myStage + "-" + "level" + myLevel + ":" + status); }
void Start() { CS_GameSave.CreatGameSave(); if (CS_GameSave.LoadGame("stage1", "level1") == "0") { CS_GameSave.SaveGame("stage1", "level1", "1"); } stage = "0"; level = "0"; }
void Start() { //mySpriteRenderer = this.GetComponent<SpriteRenderer> (); status = CS_GameSave.LoadGame("stage" + myStage, "level" + myLevel); if (status == "0") { this.gameObject.SetActive(false); } //Debug.Log ("stage" + myStage.ToString() + "-" + "level" + myLevel.ToString() + " " + myStage + ":" + myLevel + ":" + status); }
public string LoadNextStage() { return(CS_GameSave.LoadGame("stage" + (int.Parse(stage) + 1).ToString(), "level1")); }
public string LoadNext() { return(CS_GameSave.LoadGame("stage" + stage, "level" + (int.Parse(level) + 1).ToString())); }
public string LoadCurrent() { return(CS_GameSave.LoadGame("stage" + stage, "level" + level)); }