Beispiel #1
0
 public void OnGUI()
 {
     if (GUI.Button(new Rect(20, 20, 120, 40), "Nav"))
     {
         XPlayer player = XEntityMgr.singleton.Player;
         if (npc == null)
         {
             var hashset = XEntityMgr.singleton.GetAllNPC();
             npc = hashset[0];
         }
         player.Navigate(npc.Position);
     }
     if (GUI.Button(new Rect(20, 80, 120, 40), "Path"))
     {
         XEntityMgr.singleton.Player.DrawNavPath();
     }
     if (GUI.Button(new Rect(20, 140, 120, 40), "FadeIn"))
     {
         XAutoFade.FadeIn(2);
     }
     if (GUI.Button(new Rect(20, 200, 120, 40), "FadeOut"))
     {
         XAutoFade.FadeOut(2);
     }
     if (GUI.Button(new Rect(20, 260, 120, 40), "FadeOutIn"))
     {
         XAutoFade.FadeOut2In(1, 1);
     }
 }
Beispiel #2
0
 public static void OnLoadFinish(bool finish)
 {
     XAutoFade.MakeBlack(true);
     Show(false);
     XAutoFade.FadeIn(1);
 }