Integration of the octo input system and centralization of player values
This commit is contained in:
@@ -91,6 +91,19 @@ namespace OctoCore.Components
|
||||
|
||||
public bool IsPaused => _isPaused;
|
||||
public float Radius => _references.Controller ? _references.Controller.radius : 0;
|
||||
|
||||
// Public access to yaw and pitch for external aim assist systems
|
||||
public float Yaw
|
||||
{
|
||||
get => _yaw;
|
||||
set => _yaw = value;
|
||||
}
|
||||
|
||||
public float Pitch
|
||||
{
|
||||
get => _pitch;
|
||||
set => _pitch = Mathf.Clamp(value, _firstPerson.MinPitch, _firstPerson.MaxPitch);
|
||||
}
|
||||
|
||||
void OnEnable()
|
||||
{
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
// Backup saved in: Assets/OctoCore/Generated/OctoActions.json
|
||||
// To regenerate: OctoSettings > Mapping > Click 'Generate Inputs'
|
||||
// Generated from: PlayerController
|
||||
// Generated on: 2026-02-09 21:55:05
|
||||
// Generated on: 2026-02-14 14:55:28
|
||||
// ═══════════════════════════════════════════════════════════════════════════
|
||||
|
||||
namespace OctoCore.Inputs
|
||||
@@ -40,6 +40,8 @@ namespace OctoCore.Inputs
|
||||
Player_Diapason = -1931519977,
|
||||
/// <summary>Player > Fire</summary>
|
||||
Player_Fire = 380421744,
|
||||
/// <summary>Player > Exit</summary>
|
||||
Player_Exit = -2092987256,
|
||||
/// <summary>UI > Navigate</summary>
|
||||
UI_Navigate = -1768796602,
|
||||
/// <summary>UI > Submit</summary>
|
||||
|
||||
Reference in New Issue
Block a user