Iuvo Unity 0.5.1
This is library containing a variety of helper classes and extension methods for the Unity gane engine.
GitHub | Iuvo Unity Updates | Creator
Loading...
Searching...
No Matches
IuvoUnity.Interfaces.IPausable Interface Reference
Inheritance diagram for IuvoUnity.Interfaces.IPausable:
IuvoUnity.BaseClasses.IuvoInterfaceBase IuvoUnity.Interfaces.ITogglable IuvoUnity.BaseClasses.IuvoInterfaceBase IuvoUnity.Interfaces.IEnableable IuvoUnity.Interfaces.IActivatable IuvoUnity.BaseClasses.IuvoInterfaceBase IuvoUnity.BaseClasses.IuvoInterfaceBase

Public Member Functions

void OnPause ()
void OnResume ()
void PauseFor (float seconds)
IEnumerator ResumeAfterDelay (float seconds)
Public Member Functions inherited from IuvoUnity.Interfaces.IEnableable
void OnEnable ()
Public Member Functions inherited from IuvoUnity.Interfaces.IActivatable
void OnActivate ()

Properties

bool IsPaused [get, set]
Properties inherited from IuvoUnity.Interfaces.ITogglable
bool IsEnabled [get, set]
bool IsActive [get, set]

Member Function Documentation

◆ OnPause()

void IuvoUnity.Interfaces.IPausable.OnPause ( )
abstract

Referenced by PauseFor().

◆ OnResume()

void IuvoUnity.Interfaces.IPausable.OnResume ( )
abstract

Referenced by ResumeAfterDelay().

◆ PauseFor()

void IuvoUnity.Interfaces.IPausable.PauseFor ( float seconds)
67 {
68 if (!IsPaused)
69 {
70 IsPaused = true;
71 OnPause();
72 CoroutineManager.RunCoroutine(ResumeAfterDelay(seconds));
73 }
74 }
@ OnPause
Definition PlayerEventContext.cs:10
@ IsPaused
Definition ConditionContext.cs:10

References IsPaused, OnPause(), ResumeAfterDelay(), and IuvoUnity.Singletons.CoroutineManager.RunCoroutine().

◆ ResumeAfterDelay()

IEnumerator IuvoUnity.Interfaces.IPausable.ResumeAfterDelay ( float seconds)
77 {
78 yield return CoroutineManager.GetWaitForSeconds(seconds);
79 IsPaused = false;
80 OnResume();
81 }

References IuvoUnity.Singletons.CoroutineManager.GetWaitForSeconds(), IsPaused, and OnResume().

Referenced by PauseFor().

Property Documentation

◆ IsPaused

bool IuvoUnity.Interfaces.IPausable.IsPaused
getset
62{ get; set; }

Referenced by PauseFor(), and ResumeAfterDelay().


The documentation for this interface was generated from the following file:
  • D:/Unity/IuvoUnityCore/Assets/IuvoUnity/Runtime/Interfaces/ITogglable.cs