기존 시스템 재사용 프로토타입 보존
This commit is contained in:
@@ -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>");
|
||||
|
||||
Reference in New Issue
Block a user