|
Init(args)
Scripting Reference
|
◆ AddFor()
Sets the service instance of the provided definingType type that is shared across clients to the given value. If the provided instance is not equal to the old Service<T>.Instance then the ServiceChanged<T>.listeners event will be raised.
This must be an interface that the service implement, a base type that the service derives from, or the exact type of the service.
This same argument should be passed when removing the instance. |