Exemplo n.º 1
0
 void ShowCutscene(VideoClip Video, UnityAction OnCutsceneEnd)
 {
     Player.clip = Video;
     Canvas.DisableOtherWindows(gameObject);
     gameObject.SetActive(true);
     Player.Play();
 }
Exemplo n.º 2
0
 public void DisplayLevel(LevelInformation Info)
 {
     LevelDiscription.text = Info.Description;
     LevelImage.sprite     = Info.Image;
     StartButton.onClick.AddListener(() => StartLevel(Info.RegionName, Info.SceneName));
     gameObject.SetActive(true);
     Canvas.DisableOtherWindows(gameObject);
 }
Exemplo n.º 3
0
 public void ShowEvent(EventInformation Info)
 {
     EventDescription.text = Info.Description;
     EventImage.sprite     = Info.Image;
     if (Info.CallBack != null)
     {
         ConfirmButton.onClick.AddListener(Info.CallBack);
     }
     ConfirmButton.onClick.AddListener(EventWindowCleanup);
     gameObject.SetActive(true);
     Canvas.DisableOtherWindows(gameObject);
 }