public static void Assert(bool condition, object message) { if (condition == false) { RailDebug.LogError("Assert Failed: " + message); } }
public static void Assert(bool condition) { if (condition == false) { RailDebug.LogError("Assert Failed!"); } }
protected void OnPayloadReceived(IRailNetPeer peer, byte[] buffer, int length) { RailBitBuffer bitBuffer = this.interpreter.LoadData(buffer, length); this.reusableIncoming.Decode(bitBuffer); if (bitBuffer.IsFinished) { this.ProcessPacket(this.reusableIncoming); } else { RailDebug.LogError("Bad packet read, discarding..."); } this.reusableIncoming.Reset(); }