Init(args)
Scripting Reference
Loading...
Searching...
No Matches

◆ Init()

void Sisus.Init.StateMachineBehaviour< TFirstArgument, TSecondArgument >.Init ( TFirstArgument firstArgument,
TSecondArgument secondArgument )
abstractprotected

Provides the StateMachineBehaviour with the object that it depends on.

You can think of the Init method as a parameterized constructor alternative for the StateMachineBehaviour.

Init is called at the beginning of the Awake event function when the script is being loaded, before OnAwake, OnEnable and Start.

Parameters
argumentobject that this StateMachineBehaviour depends on.

Implements Sisus.Init.IInitializable< TFirstArgument, TSecondArgument >.