Skip to content

Instantly share code, notes, and snippets.

Avatar
👨‍💻
Coding Magic

Kristen ikriz

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