Trash maze MVP (#79)

Co-authored-by: Michal Pikulski <michal@foolhardyhorizons.com>
Co-authored-by: Michal Pikulski <michal.a.pikulski@gmail.com>
Reviewed-on: #79
This commit is contained in:
2025-12-10 11:14:10 +00:00
parent 4f8c8ff563
commit 082ce98f79
58 changed files with 4624 additions and 1502 deletions

View File

@@ -38,7 +38,7 @@ public class FollowerController : ManagedBehaviour
public float manualMoveSmooth = 8f;
// Settings reference
private IPlayerFollowerSettings _settings;
private IFollowerSettings _settings;
private IInteractionSettings _interactionSettings;
private GameObject _playerRef;
@@ -123,7 +123,8 @@ public class FollowerController : ManagedBehaviour
}
// Initialize settings references
_settings = GameManager.GetSettingsObject<IPlayerFollowerSettings>();
var configs = GameManager.GetSettingsObject<IPlayerMovementConfigs>();
_settings = configs.FollowerMovement;
_interactionSettings = GameManager.GetSettingsObject<IInteractionSettings>();
}
@@ -295,7 +296,7 @@ public class FollowerController : ManagedBehaviour
moveDir = _playerAIPath.velocity.normalized;
_lastMoveDir = moveDir;
}
else if (_playerTouchController != null && _playerTouchController.isHolding && _playerTouchController.LastDirectMoveDir.sqrMagnitude > 0.01f)
else if (_playerTouchController != null && _playerTouchController.IsHolding && _playerTouchController.LastDirectMoveDir.sqrMagnitude > 0.01f)
{
moveDir = _playerTouchController.LastDirectMoveDir;
_lastMoveDir = moveDir;