コード例 #1
0
        protected virtual void Start()
        {
            Adapter = GetComponent <GenericGamepadStateAdapter>();
            Adapter.GamepadConnected += OnAssignGamepadProfile;

            OnAssignGamepadProfile(GamepadIndex.GamepadOne);
            OnAssignGamepadProfile(GamepadIndex.GamepadTwo);
            OnAssignGamepadProfile(GamepadIndex.GamepadThree);
            OnAssignGamepadProfile(GamepadIndex.GamepadFour);
        }
コード例 #2
0
        private void Start()
        {
            m_adapter = GetComponent <GenericGamepadStateAdapter>();
            m_adapter.GamepadConnected += AssignGamepadProfile;

            AssignGamepadProfile(GamepadIndex.GamepadOne);
            AssignGamepadProfile(GamepadIndex.GamepadTwo);
            AssignGamepadProfile(GamepadIndex.GamepadThree);
            AssignGamepadProfile(GamepadIndex.GamepadFour);
        }