Esempio n. 1
0
    // 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);
        }
    }
Esempio n. 2
0
 [Client] public void SetLocalPlayer(DC_LocalPlayer p = null)
 {
     localPlayer = p;
 }