void ShowCutscene(VideoClip Video, UnityAction OnCutsceneEnd) { Player.clip = Video; Canvas.DisableOtherWindows(gameObject); gameObject.SetActive(true); Player.Play(); }
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); }
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); }