本文整理汇总了C#中Vehicle.getDamageState方法的典型用法代码示例。如果您正苦于以下问题:C# Vehicle.getDamageState方法的具体用法?C# Vehicle.getDamageState怎么用?C# Vehicle.getDamageState使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Vehicle
的用法示例。
在下文中一共展示了Vehicle.getDamageState方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: mountPlayer
public virtual void mountPlayer(Vehicle vehicle, Player player)
{
if (!vehicle.isObject() || vehicle.getDamageState() == "Destroyed")
return;
player.startFade(1000, 0, true);
this.schedule("1000", "setMountVehicle", vehicle, player);
player.schedule("1500", "startFade", "1000", "0", "false");
}
示例2: setMountVehicle
public virtual void setMountVehicle(Vehicle vehicle, Player player)
{
if (!vehicle.isObject() || vehicle.getDamageState() == "Destroyed")
return;
int node = findEmptySeat(vehicle, player);
if (node == -1)
return;
vehicle.mountObject(player, node, new TransformF());
player["mVehicle"] = vehicle;
}