当前位置: 首页>>代码示例>>C#>>正文


C# Player.RemoveAnimationFromQueue方法代码示例

本文整理汇总了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;
 }
开发者ID:DuckKnightDuel,项目名称:Adam,代码行数:6,代码来源:PlayerScript.cs

示例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;
            }
        }
开发者ID:DuckKnightDuel,项目名称:Adam,代码行数:15,代码来源:PlayerScript.cs

示例3: OnPunch2Ended

 private void OnPunch2Ended(Player.Player player)
 {
     player.RemoveAnimationFromQueue("punch2");
     player.AnimationEnded -= OnPunch2Ended;
     IsDoingAction = false;
 }
开发者ID:DuckKnightDuel,项目名称:Adam,代码行数:6,代码来源:PlayerScript.cs

示例4: OnNinjaDashEnd

 private void OnNinjaDashEnd(Player.Player player)
 {
     IsDoingAction = false;
     player.RemoveAnimationFromQueue("ninjaDash");
     player.AnimationEnded -= OnNinjaDashEnd;
     TestSmokeParticle.Generate(100, player);
 }
开发者ID:DuckKnightDuel,项目名称:Adam,代码行数:7,代码来源:PlayerScript.cs

示例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");
            }
        }
开发者ID:DuckKnightDuel,项目名称:Adam,代码行数:41,代码来源:PlayerScript.cs

示例6: OnDuckActionStop

 public void OnDuckActionStop(Player.Player player)
 {
     player.RemoveAnimationFromQueue("duck");
     _isDucking = false;
 }
开发者ID:DuckKnightDuel,项目名称:Adam,代码行数:5,代码来源:PlayerScript.cs


注:本文中的Player.RemoveAnimationFromQueue方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。