AbstractPlayAreaState.cs 323 B

12345678910111213141516
  1. using UnityEngine;
  2. public abstract class AbstractPlayAreaState<T> : IState where T : MonoBehaviour
  3. {
  4. protected T reference;
  5. public void Init(T reference)
  6. {
  7. this.reference = reference;
  8. }
  9. public abstract void OnStateEnter(object data);
  10. public abstract void OnStateExit(object data);
  11. }