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


C# Player.GetMoveController方法代码示例

本文整理汇总了C#中Player.GetMoveController方法的典型用法代码示例。如果您正苦于以下问题:C# Player.GetMoveController方法的具体用法?C# Player.GetMoveController怎么用?C# Player.GetMoveController使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Player的用法示例。


在下文中一共展示了Player.GetMoveController方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: UpdateState

 public void UpdateState(Player player)
 {
     if (player.GetMoveController().collisions.above || player.GetMoveController().collisions.below)
     {
         player.SetIsGrounded(true);
     }
 }
开发者ID:spellman235,项目名称:HandScan,代码行数:7,代码来源:JumpState.cs

示例2: HandleInput

 public IPlayerState HandleInput(Player player)
 {
     if(player.GetMoveController().GetIsGrounded() == true)
     {
         return new StandingState();
     }
     return null;
 }
开发者ID:DevelopersGuild,项目名称:Castle-Bashers,代码行数:8,代码来源:JumpState.cs

示例3: EnterState

 public void EnterState(Player player)
 {
     if (player.GetMoveController().isStunned == false)
     {
         player.Jump();
         player.SetIsGrounded(false);
     }
 }
开发者ID:spellman235,项目名称:HandScan,代码行数:8,代码来源:JumpState.cs

示例4: UpdateState

 public void UpdateState(Player player)
 {
     if (player.GetMoveController().collisions.below)
     {
         player.EndJump();
         player.attackController.ResetTap();
         player.animator.SetBool("JumpAttack", false);
         player.attackController.ResetTap();
     }
 }
开发者ID:DevelopersGuild,项目名称:Castle-Bashers,代码行数:10,代码来源:JumpState.cs

示例5: EnterState

    public void EnterState(Player player)
    {
        if (!player.GetMoveController().isStunned && !player.attackController.GetIsAttack())
        {
            player.Jump();
            //player.SetIsGrounded(false);

            //player.animator.SetBool("IsJumping", true);
            //player.animator.SetBool("IsGrounded", false);
           }
    }
开发者ID:DevelopersGuild,项目名称:Castle-Bashers,代码行数:11,代码来源:JumpState.cs

示例6: HandleInput

 public IPlayerState HandleInput(Player player)
 {
     if (Input.GetButtonDown("Jump") && player.GetMoveController().collisions.below)
     {
         return new JumpState();
     }
     if(player.GetIsMoving() == false)
     {
         return new StandingState();
     }
     return null;
 }
开发者ID:spellman235,项目名称:HandScan,代码行数:12,代码来源:WalkingState.cs

示例7: HandleInput

 public IAttack HandleInput(Player player)
 {
     if (player.playerRewired.GetButtonDown("Fire1") && !player.getInputDisabled() && !player.GetMoveController().isStunned)
     {
         return new MeleeBasicAttack();
     }
     if (timer > LengthOfAttack)
     {
         return new IdleAttackState();
     }
     return null;
 }
开发者ID:DevelopersGuild,项目名称:Castle-Bashers,代码行数:12,代码来源:MeleeComboFinish.cs

示例8: HandleInput

 public IPlayerState HandleInput(Player player)
 {
     if(player.GetComponent<MoveController>().GetKnockedBack() == true)
     {
         return new KnockedBackState();
     }
     if (player.playerRewired.GetButtonDown("Jump") && player.GetMoveController().collisions.below)
     {
         return new JumpState();
     }
     if(player.GetIsMoving() == false)
     {
         return new StandingState();
     }
     return null;
 }
开发者ID:DevelopersGuild,项目名称:Castle-Bashers,代码行数:16,代码来源:WalkingState.cs

示例9: HandleInput

 public IPlayerState HandleInput(Player player)
 {
     if(player.playerRewired.GetButtonDown("Jump") && player.GetMoveController().collisions.below)
     {
         return new JumpState();
     }
     if(player.GetIsMoving() == true)
     {
         return new WalkingState();
     }
     if (player.GetComponent<Player>().getDown() == true)
     {
         return new DeathState();
     }
         return null;
 }
开发者ID:DevelopersGuild,项目名称:Castle-Bashers,代码行数:16,代码来源:StandingState.cs


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