using Blue; using UnityEngine; public struct InstantiateGOCommand : ICommand { private GameObject prefab; private GameObject parent; public InstantiateGOCommand(GameObject prefab,GameObject parent =null) { this.prefab = prefab; this.parent = parent; } public void OnExcute() { InstantiateSystem.Instance.InstantiatePrefab(prefab,parent); } }