Beispiel #1
0
 public void OnInsertItem(ItemSlot slot)
 {
     if (slot.m_Item.m_Info.IsBowl())
     {
         BowlInfo bowlInfo = (BowlInfo)slot.m_Item.m_Info;
         if (bowlInfo.m_LiquidType != LiquidType.Water)
         {
             Bowl bowl = (Bowl)slot.m_Item;
             bowl.Spill(-1f);
             bowlInfo.m_LiquidType = LiquidType.Water;
         }
     }
 }