Example #1
0
 public void Clear()
 {
     icon.sprite    = null;
     count.text     = "";
     storageManager = null;
     icon.transform.gameObject.SetActive(false);
     count.transform.gameObject.SetActive(false);
 }
Example #2
0
 public void Setup(Sprite sprite, int count, StorageHendler sm, ItemType itemType, object item, BeeType beeType = BeeType.Drone, int index = -1)
 {
     icon.sprite     = sprite;
     this.count.text = count.ToString();
     storageManager  = sm;
     this.itemType   = itemType;
     this.item       = item;
     this.beeType    = beeType;
     indexSpecies    = index;
     icon.transform.gameObject.SetActive(true);
     this.count.transform.gameObject.SetActive(true);
 }