16 lines
336 B
C#
16 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;
|
|||
|
}
|
|||
|
|
|||
|
}
|