19 lines
339 B
C#
19 lines
339 B
C#
using UnityEngine;
|
|
|
|
public class SpawnPoint : MonoBehaviour
|
|
{
|
|
private void Start()
|
|
{
|
|
}
|
|
|
|
public void HideSpawnPoint()
|
|
{
|
|
Transform[] componentsInChildren = GetComponentsInChildren<Transform>();
|
|
Transform[] array = componentsInChildren;
|
|
foreach (Transform transform in array)
|
|
{
|
|
transform.gameObject.SetActive(false);
|
|
}
|
|
}
|
|
}
|