Beispiel #1
0
 void NextEvent()
 {
     SetEneble(false);
     SceneLoader.LoadScene(1);
     ClearItem();
     ResourcesUIControl.TurnUION(true);
 }
 public void LoadLevel()
 {
     int[] eqStat = FindObjectOfType <PlayerData_Battle> ().GetEqStatus();
     if (eqStat[0] != -1 && eqStat[1] != -1)
     {
         if (selectedLevel != -1)
         {
             ResourcesUIControl.TurnUION(false);
             SceneLoader.LoadScene(3);
             LevelLoader.LoadLevel(selectedLevel);
         }
         else
         {
             PopUpControler.CallPopUp(
                 "notice",
                 "Select A Level",
                 "Please select Avaiable level before battle Start",
                 "");
         }
     }
     else
     {
         PopUpControler.CallPopUp(
             "notice",
             "Check Equipment",
             "Please wear some equipment before battle, wear a WEAPON and ARMOR",
             "");
     }
 }
Beispiel #3
0
    public void Open()
    {
        SceneLoader.LoadScene(1);
        startMenu.SetActive(false);
        ResourcesUIControl.TurnUION(true);

        DBSaveControl.LoadData();
    }
 public void OpenInvetory()
 {
     SceneLoader.LoadScene(2);
     ResourcesUIControl.TurnUION(true);
 }