기존 시스템 재사용 프로토타입 보존

This commit is contained in:
2026-09-01 08:56:15 +09:00
parent 2f6e80fd57
commit b95c5bdb13
58 changed files with 714 additions and 3298 deletions
+10 -1
View File
@@ -11,6 +11,15 @@ public class SimpleCameraZFollow : MonoBehaviour
private Transform target;
public void Configure(float height, float forwardOffset, float followSmoothSpeed)
{
fixedXPosition = 0f;
fixedYPosition = height;
zOffset = forwardOffset;
smoothSpeed = followSmoothSpeed;
lockRotation = true;
}
private void Start()
{
FindPlayerTarget();
@@ -21,7 +30,7 @@ public class SimpleCameraZFollow : MonoBehaviour
var players = FindObjectsByType<NetworkPlayerController>();
foreach (var player in players)
{
if (player.IsOwner)
if (player.IsLocalPlayer)
{
target = player.transform;
Debug.Log($"<color=green>[Camera] Target found: {player.name}</color>");