Пример #1
0
    public void SendWorld(World w)
    {
        MapDebuggable.Debug("Sending world to client.");
        var b = World.ConvertToBytes(w);

        networkView.RPC("GetWorld", RPCMode.Others, b);
    }
Пример #2
0
 void GetWorld(byte[] b)
 {
     if (!loadedWorld)
     {
         MapDebuggable.Debug("World received from server.");
         var w = World.ConvertFromNetworkBuffer(b);
         World.Instance = w;
         loadedWorld    = true;
     }
 }
 public static void Debug(string message, bool action)
 {
     MapDebuggable.Debug(message, action);
 }
 public static void Debug(object obj)
 {
     MapDebuggable.Debug(obj);
 }
 public static void Debug(string message)
 {
     MapDebuggable.Debug(message);
 }