Skip to content

Instantly share code, notes, and snippets.

@unity3dcollege
Created May 26, 2017 18:21
Show Gist options
  • Save unity3dcollege/b75946629d1afd15b51fb86fabc249de to your computer and use it in GitHub Desktop.
Save unity3dcollege/b75946629d1afd15b51fb86fabc249de to your computer and use it in GitHub Desktop.
public abstract class State
{
protected Character character;
public abstract void Tick();
public virtual void OnStateEnter() { }
public virtual void OnStateExit() { }
public State(Character character)
{
this.character = character;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment