Show current Item

This commit is contained in:
brausjonas
2023-03-31 20:58:20 +02:00
parent 0b1be485d5
commit 5cbb59e60c
9 changed files with 1522 additions and 175 deletions
@@ -289,6 +289,7 @@ public class PlayablePlayer : Player
private void Finish()
{
imageCurrentItem.color = new Color(0, 0, 0, 0);
client.SendFinished();
}
@@ -352,7 +353,10 @@ public class PlayablePlayer : Player
public void ActivateItem(int index)
{
activeItem = items[index].type;
imageCurrentItem.sprite = items[index].sprite;
imageCurrentItem.color = new Color(1, 1, 1, 1);
items[index] = null;
itemInfoImages[index].color = new Color(0, 0, 0, 0);
client.SendActiveItem((byte)index);
}
}