public virtual void SetItem(Item_TYPE _type) { dropItemob = Instantiate(LoadDataManager.instance.itemPrefabDic[_type.ToString()]); dropItemob.transform.localPosition = Vector2.zero; dropItemob.transform.SetParent(this.transform.parent); dropItemob.gameObject.SetActive(false); }
public SpawnItemInfo(Item_TYPE _itype, Vector2 _startpos) { iType = _itype; startpos = _startpos; itemModel = null; }