本文整理汇总了C#中AIHeroClient.IsVisible方法的典型用法代码示例。如果您正苦于以下问题:C# AIHeroClient.IsVisible方法的具体用法?C# AIHeroClient.IsVisible怎么用?C# AIHeroClient.IsVisible使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AIHeroClient
的用法示例。
在下文中一共展示了AIHeroClient.IsVisible方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Combo
public void Combo(AIHeroClient target)
{
if (R.IsReady() && AutoWalker.myHero.Distance(target) > 600 &&
AutoWalker.myHero.Distance(target) < 1600 && target.IsVisible())
R.Cast(target);
if (W.IsReady())
W.Cast(target);
if (Q.IsReady())
Q.Cast();
}
示例2: qResult
private void qResult(Vector3[] path, Vector3 castpos, Vector3 targetPos, float ms, AIHeroClient tg, float myhp, float targhp, Vector3 castheropos, StreamWriter fi)
{
//Console.WriteLine(castpos.Distance(tg));
if (castpos.Distance(tg) > 600 || !tg.IsVisible()) return;
//endpos.x endpos.y movespeed startpos.x startpos.y startpath[1].x startpath[1].y startpath[2].x startpath[2].y myhpPerc targHpPer distance
string res = tg.Position.X + " " + tg.Position.Y + " " + ms + " " + targetPos.X + " " + targetPos.Y;
for (int i = 1; i < 3; i++)
{
if (path.Length <= i)
res += " " + path[path.Length - 1].X + " " + path[path.Length - 1].Y;
else
res += " " + path[i].X + " " + path[i].Y;
}
res += " " + myhp + " " + targhp + " " + castheropos.Distance(targetPos);
fi.WriteLine(res);
}
示例3: Combo
public void Combo(AIHeroClient target)
{
if (R.IsReady() && target.HealthPercent() < 25 && AutoWalker.p.Distance(target) > 600 &&
AutoWalker.p.Distance(target) < 1600 && target.IsVisible())
R.Cast(target);
}