コード例 #1
0
 public void OnMissionEnd()
 {
     //MissionCamera.enabled = true;
     if (MapRadar != null)
     {
         MapRadar.GetComponent <CanvasGroup> ().alpha        = 0;
         MapRadar.GetComponent <CanvasGroup> ().interactable = false;
     }
     Time.timeScale = 0;
     if (ControllerHud != null)
     {
         ControllerHud.GetComponent <CanvasGroup> ().alpha        = 0;
         ControllerHud.GetComponent <CanvasGroup> ().interactable = false;
     }
     if (MenuHud != null)
     {
         MenuHud.SetActive(false);
     }
     if (TutorialHud != null)
     {
         TutorialHud.SetActive(false);
     }
     if (MissionBriefingHud != null)
     {
         MissionBriefingHud.SetActive(false);
     }
     if (Joystick != null)
     {
         Joystick.SetActive(false);
     }
 }
コード例 #2
0
    public void ActiveAll()
    {
        MissionCamera.enabled  = false;
        MainGameCamera.enabled = true;
        if (ControllerHud)
        {
            ControllerHud.GetComponent <CanvasGroup> ().alpha        = 1;
            ControllerHud.GetComponent <CanvasGroup> ().interactable = true;
        }
        if (MenuHud)
        {
            MenuHud.SetActive(true);
        }
        if (TutorialHud)
        {
            TutorialHud.SetActive(true);
        }

        MissionBriefingHud.SetActive(false);
        if (MapRadar)
        {
            MapRadar.GetComponent <CanvasGroup> ().alpha        = 1;
            MapRadar.GetComponent <CanvasGroup> ().interactable = true;
        }
    }