void FindInputProfiles() { // figure out what types of controllers are in the scene if (InputManager.Devices.Count == 0 && currentState != ControllerDevicesInputed.keyboard) { // only a keyboard is plugged in currentState = ControllerDevicesInputed.keyboard; maxInputOptionsAvalible = 0; CheckAvalibleMenuOptions(); // Check if options in the menu need to be disabled rightArrow.SetActive(false); leftArrow.SetActive(false); } else if (InputManager.Devices.Count == 1 && currentState != ControllerDevicesInputed.oneController) { // one contorller and a keyboard are plugged in currentState = ControllerDevicesInputed.oneController; maxInputOptionsAvalible = 2; CheckAvalibleMenuOptions(); // Check if options in the menu need to be disabled rightArrow.SetActive(true); leftArrow.SetActive(true); } else if (InputManager.Devices.Count >= 2 && currentState != ControllerDevicesInputed.twoOrMoreControllers) { // two or more keyboards are plugged in and a keyboard currentState = ControllerDevicesInputed.twoOrMoreControllers; maxInputOptionsAvalible = 3; CheckAvalibleMenuOptions(); // Check if options in the menu need to be disabled rightArrow.SetActive(true); leftArrow.SetActive(true); } }
void FindInputProfiles() { // figure out what types of controllers are in the scene if (InputManager.Devices.Count == 0 && currentState != ControllerDevicesInputed.keyboard) { // only a keyboard is plugged in currentState = ControllerDevicesInputed.keyboard; maxInputOptionsAvalible = 1; CheckAvalibleControllerMenuOptions(); // Check if options in the menu need to be disabled // Animation stuff ArrowAnimations(); // Figure out what contorller options need to be activated ActivateProperControllerOptions(); ResetHands(); //rightArrow.SetActive(false); //leftArrow.SetActive(false); //if (rightArrow.activeSelf == true && leftArrow.activeSelf == true // && rightArrowAnimator.GetBool("IsUnactive") == false && leftArrowAnimator.GetBool("IsUnactive") == false) //{ // //print("this is happening"); // rightArrowAnimator.SetBool("IsUnactive", true); // leftArrowAnimator.SetBool("IsUnactive", true); // rightArrowAnimator.SetTrigger("Unactive"); // leftArrowAnimator.SetTrigger("Unactive"); //} } else if (InputManager.Devices.Count == 1 && currentState != ControllerDevicesInputed.oneController) { // one contorller and a keyboard are plugged in currentState = ControllerDevicesInputed.oneController; maxInputOptionsAvalible = 3; CheckAvalibleControllerMenuOptions(); // Check if options in the menu need to be disabled // Animation stuff ArrowAnimations(); // Figure out what contorller options need to be activated ActivateProperControllerOptions(); ResetHands(); } else if (InputManager.Devices.Count >= 2 && currentState != ControllerDevicesInputed.twoOrMoreControllers) { // two or more keyboards are plugged in and a keyboard currentState = ControllerDevicesInputed.twoOrMoreControllers; maxInputOptionsAvalible = 4; CheckAvalibleControllerMenuOptions(); // Check if options in the menu need to be disabled // Animation stuff ArrowAnimations(); // Figure out what contorller options need to be activated ActivateProperControllerOptions(); ResetHands(); } }