protected virtual void Start() { Adapter = GetComponent <GenericGamepadStateAdapter>(); Adapter.GamepadConnected += OnAssignGamepadProfile; OnAssignGamepadProfile(GamepadIndex.GamepadOne); OnAssignGamepadProfile(GamepadIndex.GamepadTwo); OnAssignGamepadProfile(GamepadIndex.GamepadThree); OnAssignGamepadProfile(GamepadIndex.GamepadFour); }
private void Start() { m_adapter = GetComponent <GenericGamepadStateAdapter>(); m_adapter.GamepadConnected += AssignGamepadProfile; AssignGamepadProfile(GamepadIndex.GamepadOne); AssignGamepadProfile(GamepadIndex.GamepadTwo); AssignGamepadProfile(GamepadIndex.GamepadThree); AssignGamepadProfile(GamepadIndex.GamepadFour); }