Skip to main content

PlayerStateSettings

An abstract class in Root.Township, Alta.PlayerStates.

Base settings asset for a player state (downed, dead and so on). Each subclass names the state class it configures.

Constructors​

MemberWhat it is
protected PlayerStateSettings()Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets.

Fields​

2 private and internal fields
MemberWhat it is
private List<ControllerModeType> controlsToAddBacking field for ControlsToAdd.
private List<ControllerModeType> controlsToRemoveBacking field for ControlsToRemove.

Properties​

MemberWhat it is
List<ControllerModeType> ControlsToAdd { get; }Controller modes added when the state starts and removed when it ends.
List<ControllerModeType> ControlsToRemove { get; }Controller modes removed when the state starts and added back when it ends.
abstract Type StateType { get; }The player state class these settings are for.

Used in​

Members of other types that take, return or hold a PlayerStateSettings: