Exemplo n.º 1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="vehicle"></param>
        /// <param name="cameraIK"></param>
        /// <param name="physicsTable"></param>
        private static void _SetEasyCamIK(string vehicle, string cameraIK, DB physicsTable)
        {
            string chosenObject = cameraIK.Split(Tools.SYMBOL_VALUE_SEPARATOR)[0];

            VehicleSlotsHelper.ChangeCameraByVehicleName(vehicle, chosenObject, physicsTable);
            VehicleSlotsHelper.ChangeIKByVehicleName(vehicle, chosenObject, physicsTable);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Sets camera or IK for specified slot according to combo list item
        /// </summary>
        /// <param name="vehicle"></param>
        /// <param name="cameraOrIK"></param>
        /// <param name="physicsTable"></param>
        /// <param name="isCam"></param>
        private static void _SetCamOrIK(string vehicle, string cameraOrIK, DB physicsTable, bool isCam)
        {
            string chosenObject = cameraOrIK.Split(Tools.SYMBOL_VALUE_SEPARATOR)[0];

            if (isCam)
            {
                VehicleSlotsHelper.ChangeCameraByVehicleName(vehicle, chosenObject, physicsTable);
            }
            else
            {
                VehicleSlotsHelper.ChangeIKByVehicleName(vehicle, chosenObject, physicsTable);
            }
        }