Exemple #1
0
 void Awake()
 {
     m_schemeLookup = new Dictionary <string, ControlScheme>();
     playerSchemes  = new ControlScheme[numPlayers];
     ScanService.OnAwake();
     GamepadHandler.OnAwake();
 }
Exemple #2
0
        protected override void Awake()
        {
            base.Awake();

            m_schemeLookup = new Dictionary <string, ControlScheme>();
            playerSchemes  = new ControlScheme[numPlayers];
            ScanService.OnAwake();
            GamepadHandler.OnAwake();

            // try and load custom runtime bindings
            if (!LoadCustomSchemes())
            {
                Debug.Log("Couldnt find custom control bindings, loading defaults...");
                LoadDefaultSchemes();
            }
        }