WfFadeBehaviour.cs 526 B

1234567891011121314151617181920212223242526272829
  1. using System;
  2. using UnityEngine;
  3. public abstract class WfFadeBehaviour : MonoBehaviour, InterfaceWfFade
  4. {
  5. public virtual void OnStartedFadeIn()
  6. {
  7. UICamera.InputEnable = false;
  8. }
  9. public virtual void OnStartedFadeOut()
  10. {
  11. UICamera.InputEnable = false;
  12. }
  13. public abstract void OnUpdateFadeIn(float val);
  14. public abstract void OnUpdateFadeOut(float val);
  15. public virtual void OnCompleteFadeIn()
  16. {
  17. UICamera.InputEnable = true;
  18. }
  19. public virtual void OnCompleteFadeOut()
  20. {
  21. UICamera.InputEnable = true;
  22. }
  23. }