Item Gedöns bissl benüüüützen
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user