Integration of the octo input system and centralization of player values

This commit is contained in:
2026-02-17 17:29:27 +01:00
parent 7b48e385b2
commit 79da2e5722
38 changed files with 2831 additions and 673 deletions
@@ -4,10 +4,11 @@ using System.Collections.Generic;
using System.Linq;
using Unheimlich.Data.DetectiveBoard;
using Unheimlich.Managers;
using Unheimlich.Core;
namespace Unheimlich.UI.DetectiveBoard
{
public class DetectiveBoardCanvas : MonoBehaviour
public class DetectiveBoardCanvas : Singleton<DetectiveBoardCanvas>
{
[Header("References")]
[SerializeField] private Canvas _canvas;
@@ -60,7 +61,7 @@ namespace Unheimlich.UI.DetectiveBoard
ToggleNodeEliminated(node);
}
private void Awake()
protected override void OnAwake()
{
if (_canvas == null)
_canvas = GetComponent<Canvas>();