Init(args)
Scripting Reference
List of all members | Static Public Member Functions
Sisus.Init.Updater Class Reference

Description

Class responsible for broadcasting the IUpdate.Update, ILateUpdate.LateUpdate and IFixedUpdate.FixedUpdate events to subscribers during the corresponding Unity event functions.

Classes wrapped by Wrapper<TWrapped> can subscribe to these events simply by implementing the IUpdate, ILateUpdate or IFixedUpdate interface. They will receiving these events for as long as the wrapper component remains enabled and active and is not destroyed.

Note that these events do not get sent in edit mode, not even if the wrapper component has the ExecuteAlways attribute.

Inheritance diagram for Sisus.Init.Updater:
Sisus.Init.MonoBehaviour< TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument > Sisus.Init.ICoroutineRunner Sisus.Init.IInitializable< TArgument > Sisus.Init.IInitializable< TFirstArgument, TSecondArgument > Sisus.Init.IInitializable< TFirstArgument, TSecondArgument, TThirdArgument > Sisus.Init.IInitializable< TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument > Sisus.Init.IInitializable< TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument > Sisus.Init.IArgs< TArgument > Sisus.Init.IArgs< TFirstArgument, TSecondArgument > Sisus.Init.IArgs< TFirstArgument, TSecondArgument, TThirdArgument > Sisus.Init.IArgs< TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument > Sisus.Init.IArgs< TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument > Sisus.Init.IFifthArgument< TFifthArgument > Sisus.Init.IThirdArgument< TThirdArgument > Sisus.Init.ISecondArgument< TSecondArgument > Sisus.Init.IFirstArgument< TFirstArgument > Sisus.Init.IFiveArguments Sisus.Init.IFourthArgument< TFourthArgument > Sisus.Init.IThirdArgument< TThirdArgument > Sisus.Init.ISecondArgument< TSecondArgument > Sisus.Init.IFirstArgument< TFirstArgument > Sisus.Init.IFourArguments Sisus.Init.IThirdArgument< TThirdArgument > Sisus.Init.ISecondArgument< TSecondArgument > Sisus.Init.IFirstArgument< TFirstArgument > Sisus.Init.IThreeArguments Sisus.Init.ISecondArgument< TSecondArgument > Sisus.Init.IFirstArgument< TFirstArgument > Sisus.Init.ITwoArguments Sisus.Init.IFirstArgument< TArgument > Sisus.Init.IOneArgument

Static Public Member Functions

static void Subscribe ([NotNull] IUpdate subscriber)
 Subscribes subscriber to receive a callback during the MonoBehaviour.Update event function. More...
 
static void Subscribe ([NotNull] ILateUpdate subscriber)
 Subscribes subscriber to receive a callback during the MonoBehaviour.LateUpdate event function. More...
 
static void Subscribe ([NotNull] IFixedUpdate subscriber)
 Subscribes subscriber to receive a callback during the MonoBehaviour.FixedUpdate event function. More...
 
static void Unsubscribe ([NotNull] IUpdate subscriber)
 Unsubscribes subscriber from receiving a callback during the MonoBehaviour.Update event function. More...
 
static void Unsubscribe ([NotNull] ILateUpdate subscriber)
 Unsubscribes subscriber from receiving a callback during the MonoBehaviour.LateUpdate event function. More...
 
static void Unsubscribe ([NotNull] IFixedUpdate subscriber)
 Unsubscribes subscriber from receiving a callback during the MonoBehaviour.FixedUpdate event function. More...
 
static new Coroutine StartCoroutine ([NotNull] IEnumerator coroutine)
 Starts the provided coroutine . More...
 
static new void StopCoroutine ([NotNull] IEnumerator coroutine)
 Stops the provided coroutine . More...
 
static new void StopCoroutine ([NotNull] Coroutine coroutine)
 Stops the provided coroutine . More...
 
static void InvokeAtEndOfFrame (Action action)
 Invokes action at the end of this frame. More...
 

Additional Inherited Members

- Public Member Functions inherited from Sisus.Init.IInitializable< TArgument >
void Init (TArgument argument)
 Initializes the object with an object that it depends on. More...
 
void Init (TFirstArgument firstArgument, TSecondArgument secondArgument)
 Initializes the object with two objects that it depends on. More...
 
void Init (TFirstArgument firstArgument, TSecondArgument secondArgument, TThirdArgument thirdArgument)
 Initializes the object with three objects that it depends on. More...
 
void Init (TFirstArgument firstArgument, TSecondArgument secondArgument, TThirdArgument thirdArgument, TFourthArgument fourthArgument)
 Initializes the object with four objects that it depends on. More...
 
void Init (TFirstArgument firstArgument, TSecondArgument secondArgument, TThirdArgument thirdArgument, TFourthArgument fourthArgument, TFifthArgument fifthArgument)
 Initializes the object with five objects that it depends on. More...
 
- Public Member Functions inherited from Sisus.Init.IInitializable< TFirstArgument, TSecondArgument >
void Init (TArgument argument)
 Initializes the object with an object that it depends on. More...
 
void Init (TFirstArgument firstArgument, TSecondArgument secondArgument)
 Initializes the object with two objects that it depends on. More...
 
void Init (TFirstArgument firstArgument, TSecondArgument secondArgument, TThirdArgument thirdArgument)
 Initializes the object with three objects that it depends on. More...
 
void Init (TFirstArgument firstArgument, TSecondArgument secondArgument, TThirdArgument thirdArgument, TFourthArgument fourthArgument)
 Initializes the object with four objects that it depends on. More...
 
void Init (TFirstArgument firstArgument, TSecondArgument secondArgument, TThirdArgument thirdArgument, TFourthArgument fourthArgument, TFifthArgument fifthArgument)
 Initializes the object with five objects that it depends on. More...
 
- Public Member Functions inherited from Sisus.Init.IInitializable< TFirstArgument, TSecondArgument, TThirdArgument >
void Init (TArgument argument)
 Initializes the object with an object that it depends on. More...
 
void Init (TFirstArgument firstArgument, TSecondArgument secondArgument)
 Initializes the object with two objects that it depends on. More...
 
void Init (TFirstArgument firstArgument, TSecondArgument secondArgument, TThirdArgument thirdArgument)
 Initializes the object with three objects that it depends on. More...
 
void Init (TFirstArgument firstArgument, TSecondArgument secondArgument, TThirdArgument thirdArgument, TFourthArgument fourthArgument)
 Initializes the object with four objects that it depends on. More...
 
void Init (TFirstArgument firstArgument, TSecondArgument secondArgument, TThirdArgument thirdArgument, TFourthArgument fourthArgument, TFifthArgument fifthArgument)
 Initializes the object with five objects that it depends on. More...
 
- Public Member Functions inherited from Sisus.Init.IInitializable< TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument >
void Init (TArgument argument)
 Initializes the object with an object that it depends on. More...
 
void Init (TFirstArgument firstArgument, TSecondArgument secondArgument)
 Initializes the object with two objects that it depends on. More...
 
void Init (TFirstArgument firstArgument, TSecondArgument secondArgument, TThirdArgument thirdArgument)
 Initializes the object with three objects that it depends on. More...
 
void Init (TFirstArgument firstArgument, TSecondArgument secondArgument, TThirdArgument thirdArgument, TFourthArgument fourthArgument)
 Initializes the object with four objects that it depends on. More...
 
void Init (TFirstArgument firstArgument, TSecondArgument secondArgument, TThirdArgument thirdArgument, TFourthArgument fourthArgument, TFifthArgument fifthArgument)
 Initializes the object with five objects that it depends on. More...
 
- Public Member Functions inherited from Sisus.Init.ICoroutineRunner
void StopAllCoroutines ()
 Stops all coroutine coroutines that are currently running on this object, if any. More...
 
- Protected Member Functions inherited from Sisus.Init.MonoBehaviour< TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument >
abstract void Init (TArgument argument)
 Provides the Component with the argument object that it depends on. More...
 
virtual void OnReset ()
 Reset state to default values. More...
 
virtual void OnAwake ()
 OnAwake is called when the script instance is being loaded during the Awake event after the Init function has finished. More...
 
abstract void Init (TFirstArgument firstArgument, TSecondArgument secondArgument)
 Provides the Component with the objects that it depends on. More...
 
virtual void OnReset ()
 Reset state to default values. More...
 
virtual void OnAwake ()
 OnAwake is called when the script instance is being loaded during the Awake event after the Init function has finished. More...
 
abstract void Init (TFirstArgument firstArgument, TSecondArgument secondArgument, TThirdArgument thirdArgument)
 Provides the Component with the objects that it depends on. More...
 
virtual void OnReset ()
 Reset state to default values. More...
 
virtual void OnAwake ()
 OnAwake is called when the script instance is being loaded during the Awake event after the Init function has finished. More...
 
abstract void Init (TFirstArgument firstArgument, TSecondArgument secondArgument, TThirdArgument thirdArgument, TFourthArgument fourthArgument)
 Provides the Component with the objects that it depends on. More...
 
virtual void OnReset ()
 Reset state to default values. More...
 
virtual void OnAwake ()
 OnAwake is called when the script instance is being loaded during the Awake event after the Init function has finished. More...
 
abstract void Init (TFirstArgument firstArgument, TSecondArgument secondArgument, TThirdArgument thirdArgument, TFourthArgument fourthArgument, TFifthArgument fifthArgument)
 Provides the Component with the objects that it depends on. More...
 
virtual void OnReset ()
 Reset state to default values. More...
 
virtual void OnAwake ()
 OnAwake is called when the script instance is being loaded during the Awake event after the Init function has finished. More...
 
- Properties inherited from Sisus.Init.MonoBehaviour< TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument >
TArgument this[[NotNull] string memberName [set]
 Assigns an argument received during initialization to a field or property by the memberName given name. More...
 
object this[[NotNull] string memberName [set]
 Assigns an argument received during initialization to a field or property by the memberName given name. More...