예제 #1
0
 public override void Act(StateMachine _owner)
 {
     _owner.SetInitVel();
     _owner.Accelerate();
     _owner.FrontCollisionTest();
     //_owner.playerRotator.UpdateRotation();
 }
예제 #2
0
    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);
    }