public void RemoveFood() { _currentStomchItem = null; _cdwDigestionBar.enabled = false; _image.sprite = null; StomachSlotState = EnumStomachSlotState.Empty; }
public void AddFood(StomachItemDTO stomachItem) { _currentStomchItem = stomachItem; _image.enabled = true; _cdwDigestionBar.enabled = true; _cdwDigestionBar.fillAmount = 0f; _image.sprite = stomachItem.Item.InventorySprite; StomachSlotState = EnumStomachSlotState.HasFood; }
protected override void SetInitialValues() { _image = this.GetComponent <Image>(); StomachSlotState = EnumStomachSlotState.Empty; }