public FloatEvent OnDirectionChanged; // Acceleration direction changes private void Start() { currentOrientation = InitialDirection; FollowCamera.CameraTargetChanged(this); PlayerInputSender.RegisterInputAction(PInput.HORIZONTAL, PInputType.FOCUS, onHorizontalMovement); }
private void Start() { if (RegisterInputFire) { PlayerInputSender.RegisterInputAction(PInput.FIRE, PInputType.FOCUS, TryToFire); } }
private void registerInputs() { PlayerInputSender.RegisterInputAction(PInput.HORIZONTAL, PInputType.FOCUS, Accelerate); PlayerInputSender.RegisterInputAction(PInput.VERTICAL, PInputType.FOCUS, Strafe); }