本文整理汇总了C#中Player.RemoveAnimationFromQueue方法的典型用法代码示例。如果您正苦于以下问题:C# Player.RemoveAnimationFromQueue方法的具体用法?C# Player.RemoveAnimationFromQueue怎么用?C# Player.RemoveAnimationFromQueue使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Player
的用法示例。
在下文中一共展示了Player.RemoveAnimationFromQueue方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: OnSmellPoopAnimationEnd
private void OnSmellPoopAnimationEnd(Player.Player player)
{
player.RemoveAnimationFromQueue("smellPoop");
_idleTimer.Reset();
player.AnimationEnded -= OnSmellPoopAnimationEnd;
}
示例2: OnPunchEnded
private void OnPunchEnded(Player.Player player)
{
player.RemoveAnimationFromQueue("punch");
player.AnimationEnded -= OnPunchEnded;
IsDoingAction = false;
if (TimeSinceLastPunch.TimeElapsedInMilliSeconds < 325)
{
player.AttackSound.Play();
player.AddAnimationToQueue("punch2");
player.AnimationFrameChanged += OnPunchFrameChange;
player.AnimationEnded += OnPunch2Ended;
IsDoingAction = true;
}
}
示例3: OnPunch2Ended
private void OnPunch2Ended(Player.Player player)
{
player.RemoveAnimationFromQueue("punch2");
player.AnimationEnded -= OnPunch2Ended;
IsDoingAction = false;
}
示例4: OnNinjaDashEnd
private void OnNinjaDashEnd(Player.Player player)
{
IsDoingAction = false;
player.RemoveAnimationFromQueue("ninjaDash");
player.AnimationEnded -= OnNinjaDashEnd;
TestSmokeParticle.Generate(100, player);
}
示例5: OnStill
public void OnStill(Player.Player player)
{
if (!player.IsOnVines)
{
player.RemoveAnimationFromQueue("climb");
}
else
{
player.RemoveAnimationFromQueue("fall");
}
// Toggle idle animations.
if (_idleTimer.TimeElapsedInSeconds > 10)
{
player.AddAnimationToQueue("smellPoop");
player.AnimationEnded += OnSmellPoopAnimationEnd;
_idleTimer.Reset();
}
if (Math.Abs(player.GetVelocity().X) < 2f)
{
player.RemoveAnimationFromQueue("walk");
}
if (Math.Abs(player.GetVelocity().X) < 9)
{
player.RemoveAnimationFromQueue("run");
}
if (Math.Abs(player.GetVelocity().X) < 1)
{
player.RemoveAnimationFromQueue("slide");
}
if (player.GetVelocity().Y > 2)
{
player.IsJumping = true;
if (player.GetVelocity().Y > 10)
player.AddAnimationToQueue("fall");
}
}
示例6: OnDuckActionStop
public void OnDuckActionStop(Player.Player player)
{
player.RemoveAnimationFromQueue("duck");
_isDucking = false;
}