// StateMachine.IState Implementation public override void OnEnter() { base.OnEnter(); chargingAttack.Enable(); agent.angularSpeed = behaviour.TurnRate * 0.1f; oldAcceleration = agent.acceleration; agent.acceleration = oldAcceleration * 3.0f; }
public void OnEnter() { attack.Enable(); }