public void SetGameplayControlsActive(bool isActive) { if (m_input != null) { m_input.SetControlsActive(Category.Gameplay, isActive); } }
private IEnumerator Start() { InitOrbitPlacement(); while (!LevelInitializer.IsInitialized) { yield return(null); } m_input = ReInput.players.GetPlayer(0); SetMoveInterpreter(PlayerSettings.Instance.CurrentMovement); m_input.CreateMapActivationRules(); m_input.SetControlsActive(Category.Gameplay, true); }