Пример #1
0
 void ShowCutscene(VideoClip Video, UnityAction OnCutsceneEnd)
 {
     Player.clip = Video;
     Canvas.DisableOtherWindows(gameObject);
     gameObject.SetActive(true);
     Player.Play();
 }
Пример #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);
 }
Пример #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);
 }