public void RpcBeginGame() { gameState = state.Draw; SpawnDeck(); dm.BeginGame(); //hide gui GameObject.Find("NetworkManager").GetComponent <NetworkManagerHUD>().showGUI = false; GameObject.Destroy(GameObject.Find("BeginButton")); }