Skip to main content

PlayerControllerLifetimeScope

A class in Alta.LifetimeScopes, Alta.ATT.LifetimeScopes.

VContainer scope on a player controller. Injects the object like GameObjectLifetimeScope and registers its multi-lock model.

Constructors​

MemberWhat it is
PlayerControllerLifetimeScope()Creates a PlayerControllerLifetimeScope with default values.

Fields​

1 private and internal field
MemberWhat it is
private MonoBehaviour concretePlayerControllerMultiLockModelComponent that should implement IPlayerControllerMultiLockModel.

Methods​

MemberWhat it is
protected override void ConfigureScope(IContainerBuilder builder)Runs the base setup, then registers the multi-lock model.
1 private and internal method
MemberWhat it is
private void RegisterControlSafetyLockModel(IContainerBuilder builder)Binds IPlayerControllerMultiLockModel to the assigned component, or to a FakePlayerControllerMultiLockModel if it isn't one.