1234567891011121314151617 |
- 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);
- }
- }
|