本文整理汇总了C#中Hero.xyz方法的典型用法代码示例。如果您正苦于以下问题:C# Hero.xyz方法的具体用法?C# Hero.xyz怎么用?C# Hero.xyz使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Hero
的用法示例。
在下文中一共展示了Hero.xyz方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: OnHeroHitHead
public GameObject OnHeroHitHead(Hero hero)
{
return AudioSourceExt.PlayRandomClipAtPoint (this.HitHead, hero.xyz());
}
示例2: OnHeroJumped
public GameObject OnHeroJumped(Hero hero)
{
return AudioSourceExt.PlayRandomClipAtPoint (this.Jump, hero.xyz());
}
示例3: OnHeroFire
public GameObject OnHeroFire(Hero hero)
{
return AudioSourceExt.PlayRandomClipAtPoint (this.Fire, hero.xyz());
}
示例4: OnHeroGrowComplete
public GameObject OnHeroGrowComplete(Hero hero)
{
return AudioSourceExt.PlayRandomClipAtPoint (this.GrowComplete, hero.xyz());
}
示例5: OnMatchWon
public GameObject OnMatchWon(Hero hero)
{
return AudioSourceExt.PlayRandomClipAtPoint (this.MatchWon, hero.xyz());
}
示例6: OnHeroAboutToWin
public GameObject OnHeroAboutToWin(Hero hero)
{
return AudioSourceExt.PlayRandomClipAtPoint (this.HeroAboutToWin, hero.xyz());
}
示例7: OnHeroStompStart
public GameObject OnHeroStompStart(Hero hero)
{
return AudioSourceExt.PlayRandomClipAtPoint (this.StompStart, hero.xyz());
}
示例8: OnHeroRespawn
public GameObject OnHeroRespawn(Hero hero)
{
return AudioSourceExt.PlayRandomClipAtPoint (this.Respawn, hero.xyz());
}
示例9: OnHeroReachedMaxSize
public GameObject OnHeroReachedMaxSize(Hero hero)
{
return AudioSourceExt.PlayRandomClipAtPoint (this.HeroReachedMaxSize, hero.xyz());
}
示例10: OnHeroDies
public GameObject OnHeroDies(Hero hero)
{
return AudioSourceExt.PlayRandomClipAtPoint (this.HeroDies, hero.xyz(), 0.2f);
}
示例11: OnMatchWon
public GameObject OnMatchWon(Hero hero, int index)
{
if (index == 1) {
return AudioSourceExt.PlayRandomClipAtPoint (this.MatchWon, hero.xyz ());
}
if (index == 2) {
return AudioSourceExt.PlayRandomClipAtPoint (this.MatchWon1, hero.xyz ());
}
if (index == 3) {
return AudioSourceExt.PlayRandomClipAtPoint (this.MatchWon2, hero.xyz ());
}
return AudioSourceExt.PlayRandomClipAtPoint (this.MatchWon3, hero.xyz ());
}