Click or drag to resize

ServiceLocatorRegisterSingletonForSceneTAbstract, TConcrete Method (TConcrete, Scene)

Registers a specific instance to be a scene-specific singleton for the abstract type.

Namespace:  Archon.SwissArmyLib.Utils
Assembly:  Archon.SwissArmyLib (in Archon.SwissArmyLib.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public static void RegisterSingletonForScene<TAbstract, TConcrete>(
	TConcrete instance,
	Scene scene
)
Request Example View Source

Parameters

instance
Type: TConcrete
The instance to register as a singleton.
scene
Type: Scene
The scene to register the singleton type for.

Type Parameters

TAbstract
The abstract ype that will be mapped to TConcrete.
TConcrete
The concrete singleton implementation.
See Also