[Player] Add CineMachine tracking camera in the main level, set to follow player
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user