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