コード例 #1
0
 public void Click()
 {
     if (OptionMenuClick.isPaused() == false)
     {
         SceneManager.LoadSceneAsync("Bridge", LoadSceneMode.Single);
     }
 }
コード例 #2
0
 public void Click(string sceneToLoad)
 {
     if (OptionMenuClick.isPaused() == false)
     {
         FindObjectOfType <ShipStats>().origin = ShipStats.Origin.Base;
         SceneManager.LoadScene(sceneToLoad, LoadSceneMode.Single);
     }
 }
コード例 #3
0
ファイル: BaseAccess.cs プロジェクト: louis-bompart/hive
 private void OnTriggerStay(Collider other)
 {
     if (Input.GetAxis("Submit") > 0 && OptionMenuClick.isPaused() == false)
     {
         Cursor.visible = true;
         GameObject.Find("Data").GetComponentInChildren <QuestProgress>().StopTimer();
         SceneManager.LoadSceneAsync(sceneToAccessName, LoadSceneMode.Single);
     }
 }
コード例 #4
0
 public void onClick()
 {
     if (inv.activeSelf == false)
     {
         OptionMenuClick.PauseGame();
         inv.SetActive(true);
     }
     else
     {
         OptionMenuClick.UnPauseGame();
         inv.SetActive(false);
     }
 }
コード例 #5
0
ファイル: OptionMenuClick.cs プロジェクト: DeadPoolP/8INF830
 /// <summary>
 /// Use when the user open the in game menu.
 /// Open the menu, pause the game. Unlock the cursor.
 /// </summary>
 public void OnClickMenu()
 {
     if (gameObject.activeInHierarchy)
     {
         //The Menu is open, so we want to close it
         gameObject.SetActive(false);
         OptionMenuClick.UnPauseGame();
     }
     else
     {
         //The Menu is close, so we want to open it
         gameObject.SetActive(true);
         OptionMenuClick.PauseGame();
     }
     //TODO : Pause game, unlock cursor
 }
コード例 #6
0
 /// <summary>
 /// Use when the user open the in game inventory.
 /// </summary>
 public void OnLaunch()
 {
     if (gameObject.activeInHierarchy)
     {
         //The inventory is open, so we want to close it
         //GameObject inv = GameObject.Find ("Inventory");
         Tooltip tooltip = gameObject.transform.parent.gameObject.GetComponentInChildren <Tooltip> ();
         tooltip.Deactivate();
         gameObject.SetActive(false);
         OptionMenuClick.UnPauseGame();
     }
     else
     {
         //The inventory is close, so we want to open it
         gameObject.SetActive(true);
         OptionMenuClick.PauseGame();
     }
     //TODO : unlock cursor
 }
コード例 #7
0
 public void validate()
 {
     OptionMenuClick.UnPauseGame();
     gameObject.SetActive(false);
 }
コード例 #8
0
 public void prontBox()
 {
     OptionMenuClick.PauseGame();
     gameObject.SetActive(true);
 }