UnityGameProjectsCode / AbandondedGame / DrawWireframe.cs
DrawWireframe.cs
Raw
using UnityEngine;

public class DrawWireframe : MonoBehaviour
{
    public bool enableWireframe;
    public float drawRange;
    public Color frameColor;

    public void OnDrawGizmos()
    {
        if (enableWireframe)
        {
            Gizmos.color = frameColor;
            Gizmos.DrawWireSphere(transform.position, drawRange);
        }
    }
}