Skip to content

Instantly share code, notes, and snippets.

@worthingtonjg
Created December 27, 2018 05:51
Show Gist options
  • Save worthingtonjg/35a9684630b4a3a55f2c31fa75826f75 to your computer and use it in GitHub Desktop.
Save worthingtonjg/35a9684630b4a3a55f2c31fa75826f75 to your computer and use it in GitHub Desktop.
Base class for state in simple state machine
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class BaseState {
public virtual void InitState () {
}
public virtual void UpdateState () {
}
public virtual void DeinitState () {
}
public virtual void HandleMessage(string message)
{
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment