14 lines
270 B
C#
14 lines
270 B
C#
5 months ago
|
using System.Collections;
|
||
|
using System.Collections.Generic;
|
||
|
using UnityEngine;
|
||
|
|
||
|
public class ObstacleInstantiator : MonoBehaviour
|
||
|
{
|
||
|
public GameObject obstacle;
|
||
|
void Start()
|
||
|
{
|
||
|
if (obstacle != null)
|
||
|
Instantiate(obstacle,transform);
|
||
|
}
|
||
|
}
|