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
package | |
{ | |
import flash.display.Stage; | |
import flash.events.HTTPStatusEvent; | |
import flash.events.IOErrorEvent; | |
import flash.events.TimerEvent; | |
import flash.net.URLLoader; | |
import flash.net.URLRequest; | |
import flash.system.Capabilities; | |
import flash.utils.Timer; |
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
package | |
{ | |
import flash.sampler.*; | |
import flash.system.System; | |
import flash.utils.Dictionary; | |
import flash.utils.getQualifiedClassName; | |
/** | |
* Tracks memory allocation / deallocation between two points in time, | |
* and prints out information about leaks |
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
package | |
{ | |
import flash.display.Stage; | |
import flash.display.Stage3D; | |
import flash.display3D.Context3DProfile; | |
import flash.display3D.Context3DRenderMode; | |
import flash.events.ErrorEvent; | |
import flash.events.Event; | |
import flash.utils.setTimeout; |
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
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using UnityEngine; | |
namespace Benchmark.Test | |
{ | |
class InstanceSpawner : MonoBehaviour | |
{ |
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
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using UnityEngine; | |
namespace Benchmark.Test | |
{ | |
class InstanceSpawner : MonoBehaviour | |
{ |
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
/// <summary> | |
/// Uploads an image to Imgur | |
/// | |
/// Credit: http://answers.unity3d.com/questions/1151550/how-can-i-upload-a-screenshot-directly-to-imgur.html | |
/// </summary> | |
public class ImgurScreenshotUploader { | |
/// <summary> | |
/// Blocking call that uploads an image and returns the results of the API call. | |
/// Results can be inspected to get the URL of the newly uploaded image, or the error code |
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
// note: this interface will be referenced in loaded source code: | |
public interface ICharacter | |
{ | |
int Height { get; } | |
string Language { get; } | |
} | |
public class Human : ICharacter | |
{ | |
public int Height { get { return UnityEngine.Random.Range(150, 200); } } |
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
using System; | |
using System.Collections.Generic; | |
using System.Globalization; | |
namespace SomaSim.Util | |
{ | |
// | |
// very simple fixnum implementation that holds two digits after the decimal (so e.g. dollars and cents) | |
public struct Fixnum : IEquatable<Fixnum>, IComparable<Fixnum> |