using Blue; using UnityEngine; public class InstantiateCommand : ICommand { private GameObject prefab; private string content; public InstantiateCommand(GameObject prefab,string content="") { this.prefab = prefab; this.content = content; } public void OnExcute() { InstantiateSystem.Instance.InstantiatePrefab(prefab, content); } }