Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
 public SpawnItemInfo(Item_TYPE _itype, Vector2 _startpos)
 {
     iType     = _itype;
     startpos  = _startpos;
     itemModel = null;
 }