Skip to main content

DownwardSwingInputStructure

A class in Root.Township, the global namespace.

Skill input settings for a downward swing: raise the hand, then bring it down in time. Creates a DownwardSwingInput.

Constructors​

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

Fields​

5 private and internal fields
MemberWhat it is
private float activeTimeBacking field for ActiveTime.
private bool hasActiveTimeBacking field for HasActiveTime.
private float heightDownBacking field for HeightDown.
private float heightUpBacking field for HeightUp.
private float timeToLowerHandBacking field for TimeToLowerHand.

Properties​

MemberWhat it is
float ActiveTime { get; }Seconds the input stays active, when HasActiveTime is on. Defaults to 10.
bool HasActiveTime { get; }Whether the input expires after ActiveTime.
float HeightDown { get; }Hand height the swing must reach on the way down. Defaults to -1.
float HeightUp { get; }Hand height the swing must start from. Defaults to 0.
float TimeToLowerHand { get; }Seconds allowed to bring the hand down. Defaults to 0.7.

Methods​

MemberWhat it is
override ISkillInputMethod GetNewInput()Returns a new DownwardSwingInput.

Used in​

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