코어, 자원, 벽, 플레이어 시작 위치 설정
Flatkit 기능 일부 활용 테스트
This commit is contained in:
25
Assets/Scripts/PlayerSpawnPoint.cs
Normal file
25
Assets/Scripts/PlayerSpawnPoint.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user