本文整理匯總了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);
}