void Awake() { if (XciInputManagerReader.instance != null) { GameObject.Destroy(this.gameObject); } XciInputManagerReader.instance = this; // Load the InputManagerClone this.inputManager = Resources.Load <XciInputManagerClone>("XboxCtrlrInput/InputManagerClone"); // Lives for the life of the game DontDestroyOnLoad(this.gameObject); }
void Awake() { if(XciInputManagerReader.instance != null) { GameObject.Destroy(this.gameObject); } XciInputManagerReader.instance = this; // Load the InputManagerClone this.inputManager = Resources.Load<XciInputManagerClone>("XboxCtrlrInput/InputManagerClone"); // Lives for the life of the game DontDestroyOnLoad(this.gameObject); }