Beispiel #1
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));
 }
Beispiel #2
0
 private void StartHit3()
 {
     Opponent.SwitchMovement(OpponentState.CircleMovement);
     PopupText.ShowText("3x hits!", 1);
     state = Mission2State.Hit5;
     UI.UpdateQuest(1, MaxQuest);
     Controller.DummyAttack = true;
     UI.SetGoalText("Hit target with melee weapon", string.Format("{0} / {1}", meleeHits, 3));
 }
Beispiel #3
0
 private void StartShoot5()
 {
     rangedHits = 0;
     Opponent.SwitchMovement(OpponentState.Stationary);
     PopupText.ShowText("5x hits!", 1);
     state = Mission3State.Shoot5;
     UI.UpdateQuest(1, MaxQuest);
     Controller.DummyAttack = true;
     UI.SetGoalText("Hit target with ranged weapon", string.Format("{0} / {1}", rangedHits, 5));
 }
Beispiel #4
0
 private void StartBeatIt()
 {
     Opponent.SwitchMovement(OpponentState.MortarFiring);
     PopupText.ShowText("Beat it!", 1);
     state = Mission5State.BeatIt;
     UI.UpdateQuest(2, MaxQuest);
     Controller.DummyAttack = false;
     UI.SetGoalText("Beat opponent", string.Format("Health remaining: {0:0.00}", Controller.OpponentHealth.Health > 0 ? Controller.OpponentHealth.Health : 0));
 }