soundvision/UnityProject/Assets/Scenes/Examples/LevelThreshold/script/Spawner.cs
2019-10-08 00:03:16 +02:00

15 lines
336 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Spawner : MonoBehaviour
{
[SerializeField] private GameObject column;
public void OnThresholdExceeded()
{
var columnObject = Instantiate(column);
columnObject.transform.parent = this.transform;
}
}