- Removed deprecated ButtonPinMapping enum and related COM input classes- Updated ComInputToInputSystemAdapter with improved binding logic- Refactored GameManager to use new globals prefab path - Enhanced GameEndUIController with event system focus management - Modified Globals prefab to use pin-based input bindings - Cleaned up obsolete COM system wrapper and native wrapper classes - Adjusted input adapter to support pin bindings over action bindings - Updated manufacturer name in virtual gamepad description
31 lines
975 B
C#
31 lines
975 B
C#
using System;
|
|
using UnityEngine;
|
|
using UnityEngine.InputSystem;
|
|
|
|
namespace RR.Common.Managers
|
|
{
|
|
public class GlobalsManager : MonoBehaviour
|
|
{
|
|
private ComWrapper _comWrapper;
|
|
private In _in;
|
|
private PrizeSystem _prizeSystem;
|
|
private ComInputToInputSystemAdapter _adapter;
|
|
|
|
private void Awake()
|
|
{
|
|
_comWrapper = GetComponent<ComWrapper>();
|
|
_in = GetComponent<In>();
|
|
_prizeSystem = GetComponent<PrizeSystem>();
|
|
_adapter = GetComponent<ComInputToInputSystemAdapter>();
|
|
|
|
if (_comWrapper == null) gameObject.AddComponent<ComWrapper>();
|
|
if (_in == null) gameObject.AddComponent<In>();
|
|
if (_prizeSystem == null) gameObject.AddComponent<PrizeSystem>();
|
|
|
|
_comWrapper.Initialize();
|
|
_in.Initialize();
|
|
_prizeSystem.Initialize();
|
|
_adapter.Initialize();
|
|
}
|
|
}
|
|
} |