![]() |
Init(args)
Scripting Reference
|
◆ InitTarget()
Initializes the client object of type TClient with the arguments specified by this initializer. If IInitializer.Target is attached to the same GameObject as the initializer, then this method initializes the IInitializer.Target and returns it. If IInitializer.Target is attached to a different GameObject than the initializer, like for example a different prefab, then this method clones the IInitializer.Target, initializes the clone, and returns it. If IInitializer.Target is This method should be idempotent, meaning that if it is called multiple times, it should always return the same object, and that object should only get initialized once.
Implements Sisus.Init.IInitializer. |