Files
forest/Assets/scripts/StickSpawner.cs
2022-09-04 11:34:51 +03:00

14 lines
261 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class StickSpawner : MonoBehaviour
{
public GameObject StickPrefab;
public void CreateStick()
{
GameObject.Instantiate(StickPrefab, transform);
}
}