Ejemplo n.º 1
0
    public override void LightToggle(BasePlayer player)
    {
        BaseVehicle vehicleParent = GetVehicleParent();

        if (!(vehicleParent == null))
        {
            vehicleParent.LightToggle(player);
        }
    }
    public override void LightToggle(BasePlayer player)
    {
        BaseVehicle vehicleParent = base.GetVehicleParent();

        if (vehicleParent == null)
        {
            return;
        }
        vehicleParent.LightToggle(player);
    }
Ejemplo n.º 3
0
    public override void LightToggle(BasePlayer player)
    {
        BaseVehicle vehicleParent = this.GetVehicleParent();

        if (Object.op_Equality((Object)vehicleParent, (Object)null))
        {
            return;
        }
        vehicleParent.LightToggle(player);
    }