예제 #1
0
 private void checkIfFollowPartyStillOnMap()
 {
     if (FollowData.getFollowParty() != null)
     {
         if (FollowData.getFollowParty().IsWaiting())
         {
             FollowData.stopFollowing();
         }
     }
 }
예제 #2
0
 private void toggleFollowOnMouseClick()
 {
     if (FollowData.getIsFollowActive())
     {
         FollowData.stopFollowing();
     }
     else
     {
         if (MobileParty.MainParty.TargetParty != null)
         {
             FollowData.startFollowing(MobileParty.MainParty.TargetParty);
         }
     }
 }
예제 #3
0
 private void checkForUserInput()
 {
     if (topScreen != null)
     {
         if (topScreen.DebugInput.IsKeyPressed(InputKey.F))
         {
             toggleFollowOnMouseClick();
         }
         else if (topScreen.DebugInput.IsKeyPressed(InputKey.LeftMouseButton))
         {
             if (FollowData.getIsFollowActive())
             {
                 FollowData.stopFollowing();
             }
         }
     }
 }