1234567891011121314151617181920 |
- using Blue;
- using UnityEngine;
- namespace GHZLangChao
- {
- 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);
- }
- }
- }
|