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.IUpdatable Interface Reference
Inheritance diagram for IuvoUnity.Interfaces.IUpdatable:
IuvoUnity.Interfaces.IUpdate IuvoUnity.Interfaces.IFixedUpdate IuvoUnity.Interfaces.ILateUpdate IuvoUnity.BaseClasses.IuvoInterfaceBase IuvoUnity.BaseClasses.IuvoInterfaceBase IuvoUnity.BaseClasses.IuvoInterfaceBase

Public Member Functions

bool HasUpdateMode ()
virtual void OnUpdate ()
void HandleUpdate (StateMachines.CSM.ConditionalStateMachineUpdateMode updateMode)
Public Member Functions inherited from IuvoUnity.Interfaces.IUpdate
void Update ()
Public Member Functions inherited from IuvoUnity.Interfaces.IFixedUpdate
void FixedUpdate ()
Public Member Functions inherited from IuvoUnity.Interfaces.ILateUpdate
void LateUpdate ()

Properties

StateMachines.CSM.ConditionalStateMachineUpdateMode updateMode [get, set]

Member Function Documentation

◆ HandleUpdate()

void IuvoUnity.Interfaces.IUpdatable.HandleUpdate ( StateMachines.CSM.ConditionalStateMachineUpdateMode updateMode)
26 {
27 if ((this.updateMode & updateMode) != 0)
28 {
29 switch (updateMode)
30 {
31 case StateMachines.CSM.ConditionalStateMachineUpdateMode.Update:
32 Update();
33 break;
34 case StateMachines.CSM.ConditionalStateMachineUpdateMode.FixedUpdate:
36 break;
37 case StateMachines.CSM.ConditionalStateMachineUpdateMode.LateUpdate:
38 LateUpdate();
39 break;
40 }
41 }
42 OnUpdate();
43 }

References IuvoUnity.Interfaces.IFixedUpdate.FixedUpdate(), IuvoUnity.Interfaces.ILateUpdate.LateUpdate(), OnUpdate(), IuvoUnity.Interfaces.IUpdate.Update(), and updateMode.

◆ HasUpdateMode()

bool IuvoUnity.Interfaces.IUpdatable.HasUpdateMode ( )
23=> updateMode != StateMachines.CSM.ConditionalStateMachineUpdateMode.None;

References updateMode.

◆ OnUpdate()

virtual void IuvoUnity.Interfaces.IUpdatable.OnUpdate ( )
virtual
24{ }

Referenced by HandleUpdate().

Property Documentation

◆ updateMode

StateMachines.CSM.ConditionalStateMachineUpdateMode IuvoUnity.Interfaces.IUpdatable.updateMode
getset
22{ get; set; }

Referenced by HandleUpdate(), and HasUpdateMode().


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