Class PlayerInput
- Namespace
- GrindFest
- Assembly
- GrindFest.dll
Item comparison dialog — shows when an equipable item is picked up and the corresponding equipment slot is already occupied. Works for both bot auto-loot and manual controller pickup.
[DefaultExecutionOrder(-101)]
public class PlayerInput : Singleton<PlayerInput>
- Inheritance
-
objectPlayerInput
- Inherited Members
Fields
- SuppressSpeechInput
If true, player speech input is suppressed (e.g., when typing in a chat box).
Properties
- Target
Reactive view of
_target; raisesOnTargetChangedwhen the value actually changes.
Methods
- ClearComparisonStack()
Clear all pending comparisons (e.g. when bot disables auto_comparison).
- DecideItemComparison(int)
Called from JavaScript when the player clicks Equip / Keep / Drop.
- EnqueueForComparison(ItemBehaviour, CharacterBehaviour)
Enqueue an item for the comparison dialog. Call after the item has been picked up into the hero's inventory. If a dialog is already showing, the item is pushed onto a stack (LIFO) so the most recently picked-up item is shown next.
- ResetComposerDamping()
Temporarily unfreezes the Composer (sets both dampings to 0) so it can re-center after e.g. a camera FOV reset. Re-freezes after 3 seconds. Call from C#: PlayerInput.Instance.ResetComposerDamping();