Skip to content

Instantly share code, notes, and snippets.

@Ayrik
Ayrik / Dispatch.cs
Last active February 10, 2019 02:54
using System;
using System.Collections.Generic;
using System.Reflection;
/// <summary>
/// A simple event dispatching system that uses types instead of "ids"
/// </summary>
public static class Dispatch
{
public interface ITaggedEvent
@ZsemberiDaniel
ZsemberiDaniel / Colors
Last active May 22, 2018 19:39 — forked from louisvalet/Colors
I heard you needed colors
using System;
using System.Reflection;
using System.Linq;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
[InitializeOnLoad]
public static class Colors
{