Skip to content

Instantly share code, notes, and snippets.

Peter Cardwell-Gardner thefuntastic

Block or report user

Report or block thefuntastic

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
thefuntastic / StateEngine.cs
Created Feb 9, 2016
Modifications to State Engine in order to enable OnCollisionEnter State calls
View StateEngine.cs
//Line ~138
//Bind the State Methods
case "OnCollisionEnter":
targetState.OnCollisionEnter = CreateDelegate<Action<Collision>>(methods[i], entity);
//Line ~308
//Make sure state engine recieves collision events.
void OnCollisionEnter(Collision collision)
You can’t perform that action at this time.