コード例 #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(object obj)
 {
     MapDebuggable.Debug(obj);
 }
 public static void Error(string message, bool action)
 {
     MapDebuggable.Error(message, action);
 }
 public static void Error(string message)
 {
     MapDebuggable.Error(message);
 }
 public static void Error(object obj)
 {
     MapDebuggable.Error(obj);
 }
 public static void Debug(string message, bool action)
 {
     MapDebuggable.Debug(message, action);
 }
 public static void Debug(string message)
 {
     MapDebuggable.Debug(message);
 }