- Home /
Question by
transistor2542 · Jun 27, 2021 at 02:26 PM ·
multiplayerinspectormirror
inspector not show details and use mirror to change Scene
Hello i want to ask some question 1.why my inspector now show any details of png image and can't use them how i can fix it
use mirror to create multiplayer game i create lobby and use code to change lobby to game scene but when i press start game it show ui from lobby scene and not disappear how can i use other code to change scene?
this is code that i use
public void BeginGame()
{
CmdBeginGame();
}
[Command]
void CmdBeginGame()
{
MatchMaker.instance.BeginGame(matchID);
Debug.Log("Game Beginning");
}
public void StartGame()
{
TargetBeginGame();
}
[TargetRpc]
void TargetBeginGame()
{
Debug.Log($"MatchID: {matchID} | Beginning ");
//Additively load game scene
SceneManager.LoadSceneAsync(2, LoadSceneMode.Additive);
}
Comment