Input
Architecture
Data Flow
Key Concepts
Concept
Description
Quick Start
1. Define inputs on an Interaction subclass
using Paragon.Townskeep.InteractionSystem;
[Serializable]
public class ChopTreeInteraction : Interaction
{
[InteractionInput("Chop")]
private void OnChop()
{
// Called when the "Chop" input is performed
Debug.Log("Chop!");
}
[InteractionInput("Cancel", InteractionInputPhase.STARTED)]
private void OnCancel()
{
// Called when "Cancel" input starts
Cancel();
}
}2. Configure in Inspector
3. Runtime lifecycle
Classes
Class
Description
See Also
Last updated