Beispiel #1
0
 public void ReleaseItem(int player)
 {
     if (m_holdingItemList.ContainsKey(player))
     {
         if (TryToDropIn(m_holdingItemList [player].transform.localPosition))
         {
             int index = m_holdingItemList [player].Index;
             m_PotController.Addcolor(m_itemProperties[index].color);
             m_holdingItemList [player].RemoveItem();
             m_AudioInterface.PlaySound((EffectAudio)Random.Range(0, 4));
             itemNameText.text = m_itemProperties[index].name;
         }
         m_holdingItemList.Remove(player);
     }
 }