Skip to content

Instantly share code, notes, and snippets.

View HongjianTang's full-sized avatar

Hongjian Tang HongjianTang

View GitHub Profile
@jbroadway
jbroadway / Delegates and yielding in Unity.md
Created August 7, 2016 22:49
Delegates and yielding in Unity

Delegates and yielding in Unity

I discovered something interesting in C#'s event delegate system when combined with coroutines.

First, I started with a simple event delegate example:

using UnityEngine;
using System.Collections;