示例#1
0
    public override void PlayerServerInput(InputState inputState, BasePlayer player)
    {
        BaseVehicle vehicleParent = GetVehicleParent();

        if (vehicleParent != null)
        {
            vehicleParent.PlayerServerInput(inputState, player);
        }
        base.PlayerServerInput(inputState, player);
    }
    public override void PlayerServerInput(InputState inputState, BasePlayer player)
    {
        BaseVehicle vehicleParent = this.GetVehicleParent();

        if (Object.op_Inequality((Object)vehicleParent, (Object)null))
        {
            vehicleParent.PlayerServerInput(inputState, player);
        }
        base.PlayerServerInput(inputState, player);
    }