示例#1
0
    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);
    }
示例#2
0
 void Start()
 {
     CS_GameSave.CreatGameSave();
     if (CS_GameSave.LoadGame("stage1", "level1") == "0")
     {
         CS_GameSave.SaveGame("stage1", "level1", "1");
     }
     stage = "0";
     level = "0";
 }
示例#3
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);
    }
示例#4
0
 public string LoadNextStage()
 {
     return(CS_GameSave.LoadGame("stage" + (int.Parse(stage) + 1).ToString(), "level1"));
 }
示例#5
0
 public string LoadNext()
 {
     return(CS_GameSave.LoadGame("stage" + stage, "level" + (int.Parse(level) + 1).ToString()));
 }
示例#6
0
 public string LoadCurrent()
 {
     return(CS_GameSave.LoadGame("stage" + stage, "level" + level));
 }