예제 #1
0
 private void StartApproach()
 {
     // print("Showing text");
     PopupText.ShowText("Get close!");
     state = Mission1State.Approach;
     UI.UpdateQuest(1, MaxQuest);
     UI.SetGoalText("Approach the target", string.Format("Distance remaining: {0:0.00}", GetDistance() - 2.5f));
 }
예제 #2
0
 private void StartFollow()
 {
     state = Mission1State.Follow;
     Opponent.SwitchMovement(OpponentState.Fleeing);
     PopupText.ShowText("Catch him!");
     UI.UpdateQuest(3, MaxQuest);
     UI.SetGoalText("Catch the target", string.Format("Distance remaining: {0:0.00}", GetDistance() - 2.5f));
 }
예제 #3
0
 private void Done()
 {
     state = Mission1State.Done;
     Controller.Stop();
     Opponent.Stop();
     //   PopupText.ShowText("You win!");
     UI.MissionDone();
 }
예제 #4
0
 private void StartFlee()
 {
     state = Mission1State.Flee;
     Opponent.SwitchMovement(OpponentState.Approaching);
     PastDistances = new Queue <float>(100);
     PopupText.ShowText("Flee!");
     UI.UpdateQuest(2, MaxQuest);
     UI.SetGoalText("Flee from the target", string.Format("Distance remaining: {0:0.00}", 5f));
 }