CharacterController.IsPlayerController C# (CSharp) Method

IsPlayerController() public method

public IsPlayerController ( CharacterController playerId, ControllerInputManager, controllerId ) : bool
playerId CharacterController
controllerId ControllerInputManager,
return bool
    public bool IsPlayerController(CharacterController.ePlayerId playerId, ControllerInputManager.eControllerId controllerId)
    {
        if (controllerId == ControllerInputManager.Instance.MouseControllerId)
        {
            return playerId == ePlayerId.PLAYER_1;
        }
        else if (controllerId == ControllerInputManager.Instance.Keyboard1ControllerId)
        {
            return playerId == ePlayerId.PLAYER_1;
        }
        else if (controllerId == ControllerInputManager.Instance.Keyboard2ControllerId)
        {
            return GameUtils.m_GameMode == GameUtils.eGameMode.TWO_PLAYER && playerId == ePlayerId.PLAYER_2;
        }
        else if ((playerId == ePlayerId.PLAYER_1 && controllerId == ControllerInputManager.eControllerId.CONTROLLER_01) ||
                (playerId == ePlayerId.PLAYER_2 && controllerId == ControllerInputManager.eControllerId.CONTROLLER_02))
        {
            return true;
        }

        return false;
    }
CharacterController