void Controller_MeleeHit() { if (state.Equals(Mission2State.Hit5)) { meleeHits++; UI.SetGoalText(string.Format("{0} / {1}", meleeHits, 3)); } }
void Controller_RangedHitEvent() { rangedHits++; if (state.Equals(Mission3State.Shoot5) || state.Equals(Mission3State.CircleShoot5)) { UI.SetGoalText(string.Format("{0} / {1}", rangedHits, 5)); } }
void Controller_MortarHitEvent() { if (state.Equals(Mission4State.Hit3)) { mortarHits++; UI.SetGoalText(string.Format("{0} / {1}", mortarHits, 3)); } }
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)); }
private void CheckApproach() { float dist = GetDistance(); if (dist >= 0) { if (UI != null) { UI.SetGoalText(string.Format("Distance remaining: {0:0.00}", GetDistance() - 2.5f)); } if (dist < 2.5f) { // print("Approach done!"); StartFlee(); } } }