[Player] Add CineMachine tracking camera in the main level, set to follow player

This commit is contained in:
Michal Pikulski
2025-09-01 16:57:01 +02:00
parent 9fdde2632d
commit 82595e8991
4 changed files with 169 additions and 4 deletions

View File

@@ -30,11 +30,13 @@ public class PlayerTouchController : MonoBehaviour, ITouchInputConsumer
// Initialize target to current position so object doesn't snap
targetPosition = transform.position;
hasTarget = false;
// Register as default consumer in Start, after InputManager is likely initialized
InputManager.Instance?.SetDefaultConsumer(this);
}
void OnEnable()
{
InputManager.Instance?.SetDefaultConsumer(this);
// No longer register here
}
// Remove Update and HandleInput