decommission()

Found in:

public void decommission(){
    //_itemType = null;
    inventory.removeEquipment(thisItem.GetItemType());
    _itemIcon = null;
    thisItem = null;
    gameObject.transform.Find("Text").GetComponent().text = "";
    gameObject.transform.Find("numberbg").GetComponent().text = "";
    gameObject.transform.Find("Image").GetComponent().color = new Color32(255,255,225,0);
    gameObject.transform.Find("Image").GetComponent().material = null;
    gameObject.transform.Find("Image").GetComponent().sprite = null;
  //  Destroy(gameObject.transform.Find("Image").GetComponent().sprite);
    updateMagicSlot.decommission();
  }


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *