예제 #1
0
        public bool HasNeonLight(VehicleNeonLight neonLight)
        {
            switch (neonLight)
            {
            case VehicleNeonLight.Left:
                return(_owner.HasBone("neon_l"));

            case VehicleNeonLight.Right:
                return(_owner.HasBone("neon_r"));

            case VehicleNeonLight.Front:
                return(_owner.HasBone("neon_f"));

            case VehicleNeonLight.Back:
                return(_owner.HasBone("neon_b"));

            default:
                return(false);
            }
        }
        public bool HasDoor(VehicleDoorIndex door)
        {
            switch (door)
            {
            case VehicleDoorIndex.FrontLeftDoor:
                return(_owner.HasBone("door_dside_f"));

            case VehicleDoorIndex.FrontRightDoor:
                return(_owner.HasBone("door_pside_f"));

            case VehicleDoorIndex.BackLeftDoor:
                return(_owner.HasBone("door_dside_r"));

            case VehicleDoorIndex.BackRightDoor:
                return(_owner.HasBone("door_pside_r"));

            case VehicleDoorIndex.Hood:
                return(_owner.HasBone("bonnet"));

            case VehicleDoorIndex.Trunk:
                return(_owner.HasBone("boot"));
            }
            return(false);
        }