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

◆ Init()

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

Provides the ScriptableObject with the objects that it depends on.

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

Init is called at the beginning of the Awake event function when the script is being loaded, or when services become ready (whichever occurs later).

Parameters
firstArgumentThe first object that this ScriptableObject depends on.
secondArgumentThe second object that this ScriptableObject depends on.

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