本文整理汇总了C#中Skill.getRange方法的典型用法代码示例。如果您正苦于以下问题:C# Skill.getRange方法的具体用法?C# Skill.getRange怎么用?C# Skill.getRange使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Skill
的用法示例。
在下文中一共展示了Skill.getRange方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: unitMenuClosing
public void unitMenuClosing(Skill selectedSkill)
{
// Small wait should occur so that key input not observed immediately.
wait = true;
if (selectedSkill == null)
job = Job.SelectingSpace;
else {
job = Job.SelectingTarget;
currentSkill = selectedSkill;
// Remove old markers, which indicated valid spaces to move to
foreach (GameObject o in markers)
Destroy(o);
// Add new markers
skillRange = selectedSkill.getRange (onlyValid: false);
foreach ( Loc target in skillRange ) {
// Add all appropriate markers and store them in a list so they can be removed later
markers.Add(
Object.Instantiate (Resources.Load ("marker"),
World.current.onGround(target),
Quaternion.identity) as GameObject);
}
}
// Either way, enable movement
Cursor.canMove = true;
}