Skip to content

Instantly share code, notes, and snippets.

View CapnRat's full-sized avatar

Shawn White CapnRat

View GitHub Profile
#if UNITY_EDITOR
using System.Reflection;
using UnityEngine;
using UnityEditor;
public class FontSwitcher : EditorWindow
{
[MenuItem("Font/Show Window")]
public static void ShowFontWindow()
{
using UnityEngine;
using System.Collections;
public class GameController : MonoBehaviour {
public bool craneSwitch;
public static GameController instance;
void Awake () {
// There can only be one
using UnityEngine;
using System.Collections;
public class CraneMover : MonoBehaviour
{
public bool craneMove = false;
void Update ()
{
if (Input.GetKeyDown(KeyCode.Space))
using UnityEngine;
using System.Collections;
public class FadeOut : MonoBehaviour
{
public float fadeOutTime = 5f;
private SpriteRenderer spriteRenderer { get { return renderer as SpriteRenderer; } }
void Update ()
using UnityEngine;
public class CompiledShaderBehaviour : MonoBehaviour
{
public Shader shader;
}