chore: Compiler Warnings Fixed
This commit is contained in:
@@ -34,9 +34,11 @@ public class MovementBoxBehaviour(Keys Up, Keys Down, float High, float Low, flo
|
||||
|
||||
protected override void OnInitialize()
|
||||
{
|
||||
if (!BehaviourController.TryGetBehaviour(out inputs))
|
||||
if (!BehaviourController.TryGetBehaviour<IKeyboardInputs>(out var behaviourResult))
|
||||
throw new Exception($"{nameof(IKeyboardInputs)} is missing on ${GameObject.Name}.");
|
||||
|
||||
inputs = behaviourResult;
|
||||
|
||||
inputs.RegisterOnPress(Up, OnUpPressed);
|
||||
inputs.RegisterOnRelease(Up, OnUpReleased);
|
||||
|
||||
|
Reference in New Issue
Block a user