Пример #1
0
    public void OnePlayerKeyboardControls()
    {
        //print("1 Player Keyboard!");
        controllerManagerInstance.swapPermitted = true;
        controllerManagerInstance.ResetBothIncontrolThings();

        controllerManagerInstance.controllerTypeInputted = CurrentControllerSetup.OnePlayerKeyboard;
    }
Пример #2
0
 public void ResetControllerManagerInput()
 {
     if (instance != null)
     {
         instance.ResetBothIncontrolThings();
         instance.controllerTypeInputted = CurrentControllerSetup.Undecided;
     }
 }
Пример #3
0
    void SetControllersToTwoPlayerControllers()
    {
        newControllerManager.swapPermitted = false;
        newControllerManager.ResetBothIncontrolThings();

        if (InputManager.Devices.Count >= 2)
        {
            newControllerManager.controllerTypeInputted = CurrentControllerSetup.TwoPlayerController;
        }
        else if (InputManager.Devices.Count == 1)
        {
            newControllerManager.controllerTypeInputted = CurrentControllerSetup.OnePlayerController;
        }
        else if (InputManager.Devices.Count == 0)
        {
            newControllerManager.controllerTypeInputted = CurrentControllerSetup.OnePlayerKeyboard;
        }
    }