AbstractPlayAreaState.cs 367 B

123456789101112131415161718
  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. public abstract void OnStateBreathe();
  12. }