29 lines
966 B
C#
29 lines
966 B
C#
using UnityEngine;
|
|
|
|
namespace Minigames.DivingForPictures
|
|
{
|
|
public class MonsterSpawnPoint : MonoBehaviour
|
|
{
|
|
[Tooltip("Visual radius for spawn point in editor")]
|
|
public float gizmoRadius = 0.5f;
|
|
|
|
[Tooltip("If true, spawn point will face left (flipped in X axis)")]
|
|
public bool facesLeft = false;
|
|
|
|
// Visual indicator for editor only
|
|
private void OnDrawGizmos()
|
|
{
|
|
Gizmos.color = Color.red;
|
|
Gizmos.DrawWireSphere(transform.position, gizmoRadius);
|
|
|
|
// Draw a cross in the center for better visibility
|
|
Gizmos.DrawLine(
|
|
transform.position + Vector3.left * gizmoRadius * 0.5f,
|
|
transform.position + Vector3.right * gizmoRadius * 0.5f);
|
|
Gizmos.DrawLine(
|
|
transform.position + Vector3.up * gizmoRadius * 0.5f,
|
|
transform.position + Vector3.down * gizmoRadius * 0.5f);
|
|
}
|
|
}
|
|
}
|