상황 ;
오브젝트에는
Player Input,
InputManager
public class InputManager : MonoBehaviour
{
public static Action<Vector2> moveEvent;
public static Action<bool> attackEvent;
public static Action<int> selectWeaponEvent;
public static InputManager inst.ance;
private void Awake()
{
if(innstance == null)
{
instnance = this;
}
else
{
Destroy(gameObject);
}
DontDestroyOnLoad(insnbtance);
}
....
}
이렇게 이벤트를 발행하는 싱글톤 컴포넌트를 붙여놓은 상태
현재 플레이어 인풋, Invoke Unity Events에 저 Event들을 Invoke하는 메소드를 달아놓음
문제는 키 바인딩 변경을 위해 이 오브젝트를 메인 메뉴로 옮겨서 돈디스트로이로 박아놨는데
메인메뉴로 두번 이상 돌아갈때마다
Cannot find matching control scheme for InputManager (all control schemes are already paired to matching devices)
UnityEngine.InputSystem.PlayerInput:OnEnable () (at ./Library/PackageCache/com.unity.inputsystem@7fe8299111a7/InputSystem/Plugins/PlayerInput/PlayerInput.cs:1828)
오늘 키바인딩이 사람 열불터지게만드는구나 아주
댓글 0