public static void Assert(bool condition, object message) { if (condition == false) { VoltDebug.LogError("Assert Failed: " + message); } }
public static void Assert(bool condition) { if (condition == false) { VoltDebug.LogError("Assert Failed!"); } }
internal void FreeShape(VoltShape shape) { switch (shape.Type) { case VoltShape.ShapeType.Circle: this.circlePool.Deallocate(shape); break; case VoltShape.ShapeType.Polygon: this.polygonPool.Deallocate(shape); break; default: VoltDebug.LogError("Unknown shape for deallocation"); break; } }