示例#1
0
    public override float WaterFactorForPlayer(BasePlayer player)
    {
        BaseVehicle vehicleParent = this.GetVehicleParent();

        if (vehicleParent == null)
        {
            return(0f);
        }
        return(vehicleParent.WaterFactorForPlayer(player));
    }
    public override float WaterFactorForPlayer(BasePlayer player)
    {
        BaseVehicle vehicleParent = this.GetVehicleParent();

        if (Object.op_Equality((Object)vehicleParent, (Object)null))
        {
            return(0.0f);
        }
        return(vehicleParent.WaterFactorForPlayer(player));
    }