Skip to content

Instantly share code, notes, and snippets.

@foxor
Forked from anonymous/gist:7816225
Created December 6, 2013 00:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save foxor/7816378 to your computer and use it in GitHub Desktop.
Save foxor/7816378 to your computer and use it in GitHub Desktop.
using UnityEngine;
using System.Collections;
public class GlobalSomething : MonoBehavior {
public static GlobalSomething Singleton;
public void Awake() {
Singleton = this;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment