17 lines
489 B
C#
17 lines
489 B
C#
using UnityEngine;
|
|
|
|
namespace DefaultNamespace
|
|
{
|
|
public static class SpawnHelper
|
|
{
|
|
public static GameObject Spawn(GameObject gameObject, Vector3 pos)
|
|
{
|
|
return Object.Instantiate(gameObject, pos, Quaternion.identity);
|
|
}
|
|
|
|
public static GameObject Spawn(GameObject gameObject, Vector3 pos, GameObject parrant)
|
|
{
|
|
return Object.Instantiate(gameObject, pos, Quaternion.identity, parrant.transform);
|
|
}
|
|
}
|
|
} |