123456789101112131415161718 |
- using Blue;
- using UnityEngine;
- public class GetGameObjectCommand : ICommand
- {
- private GameObject obj;
- public GetGameObjectCommand(GameObject obj)
- {
- this.obj = obj;
- }
- public void OnExcute()
- {
- if(InstantiateSystem.Instance.objDic.ContainsKey(obj.name))
- InstantiateSystem.Instance.objDic[obj.name] = obj;
- else
- InstantiateSystem.Instance.objDic.Add(obj.name,obj);
- }
- }
|