12345678910111213141516171819 |
- using UnityEngine;
- namespace Blue
- {
- public class InstantiateSystem : SingletonMonobehaviour<InstantiateSystem>
- {
- [SerializeField] private BlueObject blueObject;
- public BlueObject BlueObject => blueObject;
- public GameObject InstantiatePrefab(GameObject prefab, GameObject parent = null)
- {
- return Instantiate(prefab, parent.transform);
- }
- public GameObject InstantiatePrefab(GameObject prefab, Transform parent = null)
- {
- return Instantiate(prefab, parent);
- }
- }
- }
|