change: input dialogue on player spawn

This commit is contained in:
Chris
2025-09-03 16:58:40 -04:00
parent 40badd1f95
commit 18cebf6f9c
12 changed files with 2818 additions and 83 deletions

View File

@@ -1,4 +1,6 @@
using System;
using Reset;
using Reset.Core.Tools;
using UnityEngine;
using Sirenix.OdinInspector;
@@ -8,12 +10,15 @@ public class Player : MonoBehaviour{
[HideInInspector] public new PlayerCamera camera;
void Awake(){
GameManager.Player = gameObject;
controls = GetComponent<PlayerControls>();
GameManager.RequestNewController();
}
void Start()
{
Debug.Log(GameManager.Player);
}
// Update is called once per frame

View File

@@ -27,6 +27,9 @@ public class PlayerControls : MonoBehaviour{
graph = GetComponent<GraphOwner>();
input = GetComponent<PlayerInput>();
// Remove all devices from this user
input.user.UnpairDevices();
// Add the delegates for each method
foreach (InputAction action in input.actions) {
action.started += SendToGraph;