Trying to add rumble to my game by literally just doing this:
using UnityEngine.InputSystem
public class CameraManager : MonoBehaviour
public static CameraManager Instance {get; private set;}
void Awake()
{
Instance = this;
}
void ShakeAllCameras()
{
//........ blah blah blah
Gamepad.current?.SetMotorSpeeds(_number, _number);
}
but when ShakeAllCameras() gets called, I get a MissingReferenceException on the CameraManager instance, which is confusing, since the instance should not get destroyed or deleted at all. (this script works fine without the aformentioned additions. weirdly, the issue also persists even if I comment out the above code until I restart the unity editor)
very confusing, am I not able to access the InputSystem namespace in a singleton instance? never seen an issue like this before lol