InstantiateSystem.cs 357 B

1234567891011121314
  1. using Blue;
  2. using UnityEngine;
  3. public class InstantiateSystem : SingletonMonobehaviour<InstantiateSystem>
  4. {
  5. [SerializeField] private BlueObject blueObject;
  6. public BlueObject BlueObject => blueObject;
  7. public void InstantiatePrefab(GameObject prefab)
  8. {
  9. Instantiate(prefab);
  10. Debug.LogError(prefab.name);
  11. }
  12. }