本文整理汇总了C#中Character.ExitArea方法的典型用法代码示例。如果您正苦于以下问题:C# Character.ExitArea方法的具体用法?C# Character.ExitArea怎么用?C# Character.ExitArea使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Character
的用法示例。
在下文中一共展示了Character.ExitArea方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: CharacterExit
override public void CharacterExit(Character p) {
if (p == null) return;
base.CharacterExit(p);
Dismount(p);
p.ExitArea(Areas.Grabbable);
p.grab = null;
}
示例2: CharacterExit
/// <summary>
/// Disable track
/// </summary>
override public void CharacterExit(Character p) {
// same as above, only diable if we leave the section we are grabbing
if (p.track == this) {
p.ExitArea(Areas.Track);
p.track = null;
p.worldVelocity -= velocity;
}
}
示例3: CharacterExit
override public void CharacterExit(Character p) {
// same as above, only diable if we leave the section we are grabbing
if (p.ropeIndex == index) {
base.CharacterExit(p);
Dismount(p);
p.ExitArea(Areas.Rope);
p.rope = null;
p.ropeIndex = -1;
}
}
示例4: DisableFence
/// <summary>
/// notify character that is out a Fence
/// </summary>
virtual public void DisableFence(Character p) {
Dismount(p);
p.ExitArea(Areas.Fence);
p.fence = null;
}
示例5: DisableLadder
/// <summary>
/// Notify Character to exit ladder area
/// </summary>
virtual public void DisableLadder(Character p) {
Dismount(p);
p.ExitArea(Areas.Ladder);
p.ladder = null;
}
示例6: Exit
/// <summary>
/// notify Character is out area item
/// </summary>
public virtual void Exit(Character p) {
if (p == null) return;
p.ExitArea(Areas.Item);
p.item = null;
}