public override void Act(StateMachine _owner) { _owner.SetInitVel(); _owner.Accelerate(); _owner.FrontCollisionTest(); //_owner.playerRotator.UpdateRotation(); }
public override void Act(StateMachine _owner) { _owner.SetInitVel(); _owner.Accelerate(); _owner.FrontCollisionTest(); _owner.LeftRightCollisionsTest(); //_owner.playerRotator.UpdateRotation(); if (_owner.isGrounded) { _owner.moveDir.y = 0; } Move(_owner); }