Esempio n. 1
0
 public void CallRpcDisplayConsoleText(DisplayConsoleTextMessage message)
 {
     if (!EvoSGameConfig.NetworkIsServer)
     {
         Log.Print(LogType.Error, "RPC Function RpcDisplayConsoleText called on client.");
     }
     else
     {
         var writer = new NetworkWriter();
         writer.Write((short)0);
         writer.Write((short)2);
         writer.WritePackedUInt32((uint)kRpcRpcDisplayConsoleText);
         writer.Write(GetComponent <NetworkIdentity>().netId);
         GeneratedNetworkCode._WriteDisplayConsoleTextMessage_None(writer, message);
         SendRPCInternal(writer, 0, "RpcDisplayConsoleText");
     }
 }