Item Gedöns bissl benüüüützen

This commit is contained in:
brausjonas
2023-03-04 00:25:41 +01:00
parent 32f5b49c0d
commit fd0a36ccb7
11 changed files with 974 additions and 98 deletions
+10
View File
@@ -30,6 +30,7 @@ public class Client : MonoBehaviour
[SerializeField] private GameObject layout2;
[SerializeField] private Image[] uiItems;
[SerializeField] private Item[] items;
[SerializeField] private Button[] itemButtons;
private int playerAmount = 0;
@@ -44,6 +45,11 @@ public class Client : MonoBehaviour
{
thisClient = this;
foreach(Image img in uiItems)
{
img.gameObject.SetActive(false);
}
for (int i = 0; i < 4; i++)
{
playerInfo[i].SetActive(false);
@@ -142,6 +148,8 @@ public class Client : MonoBehaviour
script.nextField = nextField;
script.dice = dice;
script.camera = cam;
itemButtons[job.data[5]].interactable = true;
}
//player is not playable
else
@@ -155,6 +163,8 @@ public class Client : MonoBehaviour
script.nextField = nextField;
script.dice = dice;
script.camera = cam;
itemButtons[job.data[5]].interactable = false;
}
break;