示例#1
0
 public void SetGameplayControlsActive(bool isActive)
 {
     if (m_input != null)
     {
         m_input.SetControlsActive(Category.Gameplay, isActive);
     }
 }
示例#2
0
        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);
        }