Sync Items Buy

This commit is contained in:
brausjonas
2023-03-03 23:23:06 +01:00
parent 62ca8b3cef
commit 32f5b49c0d
12 changed files with 94 additions and 65 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ public class UIItem : MonoBehaviour
{
player.AddCoins(-item.Cost);
UIHandler.GetInstance().ButtonBack();
player.AddItem(item);
((PlayablePlayer)player).AddItem(item);
}
}
}