Fix World Camera
This commit is contained in:
@@ -22,7 +22,8 @@ namespace Scampz.GameJam.Assets.Scripts.Player
|
||||
private void Update()
|
||||
{
|
||||
_animator.SetFloat("Speed", _characterController.velocity.magnitude);
|
||||
_canMove = _rayCaster.IsWithinBounds();
|
||||
if (_rayCaster.enabled)
|
||||
_canMove = _rayCaster.IsWithinBounds();
|
||||
}
|
||||
|
||||
public bool CanMove => _canMove;
|
||||
|
||||
Reference in New Issue
Block a user