Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Modifications to State Engine in order to enable OnCollisionEnter State calls
//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)
if(currentState != null && !IsInTransition)
//Line ~366
//Define the action on our StateMapping object
public Action<Collision> OnCollisionEnter = StateEngine.DoNothingCollision;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.