All settings migrated, stuff should work

This commit is contained in:
2025-09-24 15:28:13 +02:00
parent aeaa977294
commit 0ea7e7ca84
5 changed files with 21 additions and 9 deletions

View File

@@ -254,7 +254,17 @@ namespace Minigames.DivingForPictures
/// </summary>
protected virtual void UpdateControllerTarget()
{
// This would normally be implemented in derived classes if needed
if (playerController != null && playerCharacter != null)
{
// Use reflection to update the private _targetFingerX field
var targetField = typeof(PlayerController)
.GetField("_targetFingerX", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance);
if (targetField != null)
{
targetField.SetValue(playerController, playerCharacter.transform.position.x);
}
}
}
}
}