Skip to content

Instantly share code, notes, and snippets.

View ikriz's full-sized avatar
👨‍💻
Coding Magic

Kristen ikriz

👨‍💻
Coding Magic
View GitHub Profile
@AngryAnt
AngryAnt / MyProxy.cs
Created October 12, 2011 10:32
Example of how to make editor classes in assemblies accessible in Unity (untested pseudo code).
/////////////////////////////////////////////////////////////////
// MyProxy.cs - the C# source file in your assets
/////////////////////////////////////////////////////////////////
using UnityEngine;
using UnityEditor;
using MyAssemblyNamespace;
@AngryAnt
AngryAnt / MyStateMachine.cs
Created May 31, 2011 08:45
A simple state machine using a dictionary of delegates indexed by an enum.
using UnityEngine;
using System.Collections.Generic;
public class MyStateMachine : MonoBehaviour
{
public delegate void StateHandlerDelegate ();
public enum MyStateType
@AngryAnt
AngryAnt / GameManager.cs
Created May 2, 2011 08:59
GameManager.cs
using UnityEngine;
using System.Collections;
public enum GameStatus
{
Setup,
Initializing,
ReInitializing,
AwaitingMasterServer,