예제 #1
0
    void Start()
    {
        player1LayoutIndex = InputMapper.PlayerNumToControllerLayoutIndex(0);
        player2LayoutIndex = InputMapper.PlayerNumToControllerLayoutIndex(1);

        UpdateLayoutNames();
    }
예제 #2
0
 void Start()
 {
     controllerLayoutIndex = InputMapper.PlayerNumToControllerLayoutIndex(playerNum);
     // Only first player layout (keyboard + mouse) is allowed to use mouse
     if (controllerLayoutIndex != 0)
     {
         supportMouse = false;
     }
 }