Skip to content

Instantly share code, notes, and snippets.

View MrTruth0's full-sized avatar
🍰
Eating With Raccoons :3

MrTruth0

🍰
Eating With Raccoons :3
View GitHub Profile
@onevcat
onevcat / MonoSingleton.cs
Created July 18, 2013 00:37
Mono singleton Class. Extend this class to make singleton component.
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
/// <summary>
/// Mono singleton Class. Extend this class to make singleton component.
/// Example:
/// <code>
/// public class Foo : MonoSingleton<Foo>
/// </code>. To get the instance of Foo class, use <code>Foo.instance</code>