This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* To avoid performance issues caused by string constructions when logging stuff | |
* to the console, simply surround the code with the the following: | |
* | |
* #if DEBUG_LOGGING | |
* Debug.Log("my" + numer.ToString("0.00") " super" + " expensive " + " string building code"); | |
* #endif | |
* | |
* When creating a non-debug build or testing the game for performance, simply disable | |
* the debug messages from the Unity menu (menu name can be simply changed below). | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#region Private Functions | |
function Get-AsciiBytes($str){ | |
return [System.Text.Encoding]::ASCII.GetBytes($str) | |
} | |
function Write-MultiPartProperty { | |
param( | |
[parameter(Mandatory=$true)][System.IO.MemoryStream] $body, | |
[parameter(Mandatory=$true)][string] $boundary, | |
[parameter(Mandatory=$true)][string] $key, |