// Client-Side Commands (Run on Client's Instance of Object) [ClientRpc] public void RpcGameSetup(GameObject serverGO) { DC_Game sGame = serverGO.GetComponent <DC_Game>(); serverGameO = serverGO; serverGame = sGame; gameGrid = sGame.gameGrid; if (hasAuthority) { localPlayer = sGame.localPlayer; homeRoom = sGame.homeRoom; homeRoom.SetRemotePlayer(this); } }
[Client] public void SetLocalPlayer(DC_LocalPlayer p = null) { localPlayer = p; }