コード例 #1
0
ファイル: CutsceneControl.cs プロジェクト: lollipop190/2020el
 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);
 }