示例#1
0
        // 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;
        }
示例#2
0
 public void OnEnter()
 {
     attack.Enable();
 }