25 lines
747 B
C#
25 lines
747 B
C#
using UnityEngine;
|
|
|
|
namespace Northbound
|
|
{
|
|
/// <summary>
|
|
/// 플레이어 스폰 위치를 표시하는 마커
|
|
/// </summary>
|
|
public class PlayerSpawnPoint : MonoBehaviour
|
|
{
|
|
[Header("Spawn Settings")]
|
|
public int spawnIndex = -1; // -1 = 순서대로 할당
|
|
public bool isAvailable = true;
|
|
|
|
[Header("Debug")]
|
|
public Color gizmoColor = Color.green;
|
|
public float gizmoRadius = 0.5f;
|
|
|
|
private void OnDrawGizmos()
|
|
{
|
|
Gizmos.color = isAvailable ? gizmoColor : Color.red;
|
|
Gizmos.DrawWireSphere(transform.position, gizmoRadius);
|
|
Gizmos.DrawLine(transform.position, transform.position + transform.forward * 2f);
|
|
}
|
|
}
|
|
} |