mirror of
https://github.com/tym1116/BH3.git
synced 2025-12-12 22:44:35 +01:00
18 lines
302 B
C#
18 lines
302 B
C#
using UnityEngine;
|
|
|
|
public class DuplicateTarget : MonoBehaviour
|
|
{
|
|
public GameObject target;
|
|
|
|
public int count;
|
|
|
|
private void Start()
|
|
{
|
|
for (int i = 0; i < count; i++)
|
|
{
|
|
GameObject gameObject = Object.Instantiate(target);
|
|
gameObject.transform.parent = base.gameObject.transform;
|
|
}
|
|
}
|
|
}
|