예제 #1
0
 private void OnCollisionEnter2D(Collision2D other)
 {
     if (other.gameObject.tag.Equals("Player"))
     {
         SFX.Play();
         MyLoading.Reset(ThisLevel);
     }
 }
예제 #2
0
 void OnCollisionEnter2D(Collision2D col)
 {
     if (col.gameObject.tag.Equals("Player"))
     {
         Persistence.levelstatus [levelindex - 1] = 1;
         Persistence.SaveData();
         MyLoading.Loading("LevelSelect");
     }
 }
 public void LoadOtherScene(string levelToLoad, bool loadNextLevelThruMyLoading)
 {
     if (loadNextLevelThruMyLoading)
     {
         MyLoading.LoadLevel(levelToLoad);
     }
     else
     {
         SceneManager.LoadScene(levelToLoad);
     }
 }
 private void LoadOtherScene()
 {
     if (LoadNextLevelThruMyLoading)
     {
         MyLoading.LoadLevel(LevelToLoad);
     }
     else
     {
         SceneManager.LoadScene(LevelToLoad);
     }
 }
    private IEnumerator WaitAndLoadOtherSceneIE(string levelToLoad, float secondsToWait, bool loadNextLevelThruMyLoading)
    {
        yield return(new WaitForSeconds(secondsToWait));

        if (loadNextLevelThruMyLoading)
        {
            MyLoading.LoadLevel(levelToLoad);
        }
        else
        {
            SceneManager.LoadScene(levelToLoad);
        }
    }
예제 #6
0
 public void ResetData()
 {
     Persistence.levelstatus = new int[] { 1, 0, 0, 0, 0, 0, 0, 0 };
     PlayerPrefsX.SetIntArray("LevelStatus", Persistence.levelstatus);
     MyLoading.Loading("LevelSelect");
 }
예제 #7
0
 public void MenuBack()
 {
     MyLoading.Loading("Menu");
 }
예제 #8
0
 public void Play()
 {
     MyLoading.Loading("LevelSelect");
 }
예제 #9
0
 public void RestartLvl(string nomefaze)
 {
     Time.timeScale = normalTime;
     MyLoading.Loading(nomefaze);
 }
예제 #10
0
 public void BackMenu()
 {
     Time.timeScale = normalTime;
     MyLoading.Loading("LevelSelect");
 }
예제 #11
0
 void Carrega()
 {
     MyLoading.Reset(ThisLevel);
 }
예제 #12
0
 void ExitIntro()
 {
     MyLoading.Loading("Menu");
 }
예제 #13
0
 public void Loadonclick(string level)
 {
     MyLoading.Loading(level);
 }
예제 #14
0
 public void ButtonBackToMenu()
 {
     MyLoading.LoadLevel("Menu");
 }
예제 #15
0
 public void ButtonOptions()
 {
     MyLoading.LoadLevel("Options");
 }
예제 #16
0
 public void ButtonPlay()
 {
     MyLoading.LoadLevel("03_Level");
 }