SetActive
Options
hello I need help for a game I am making
here my code:
public class bInitial : MonoBehaviourPunCallbacks
{
public GameObject CloseTab;
public GameObject CardOnTable;
public GameObject StartBtn;
void Start()
{
StartBtn.SetActive(true);
CloseTab.SetActive(false);
CardOnTable.SetActive(false);
}
void Update(){
}
public void Displaycard()
{
StartBtn.SetActive(false);
CloseTab.SetActive(false);
CardOnTable.SetActive(true);
}
}
When a player execut the Displaycard() function it only works on his side no synchronisation .
here my code:
public class bInitial : MonoBehaviourPunCallbacks
{
public GameObject CloseTab;
public GameObject CardOnTable;
public GameObject StartBtn;
void Start()
{
StartBtn.SetActive(true);
CloseTab.SetActive(false);
CardOnTable.SetActive(false);
}
void Update(){
}
public void Displaycard()
{
StartBtn.SetActive(false);
CloseTab.SetActive(false);
CardOnTable.SetActive(true);
}
}
When a player execut the Displaycard() function it only works on his side no synchronisation .
0