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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user