using UnityEditor; using UnityEngine; public class GuardManager : MonoBehaviour { public string type; // Start is called once before the first execution of Update after the MonoBehaviour is created void Start() { } // Update is called once per frame void Update() { } private void OnDrawGizmos() { #if UNITY_EDITOR Handles.Label( transform.position + Vector3.up * 0f, type ); #endif } }