add dynamic spawning
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user