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