Beispiel #1
0
 public static void Assert(bool condition, object message)
 {
     if (condition == false)
     {
         VoltDebug.LogError("Assert Failed: " + message);
     }
 }
Beispiel #2
0
 public static void Assert(bool condition)
 {
     if (condition == false)
     {
         VoltDebug.LogError("Assert Failed!");
     }
 }
Beispiel #3
0
        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;
            }
        }