本文整理汇总了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);
}
}
示例2: HandleInput
public IPlayerState HandleInput(Player player)
{
if(player.GetMoveController().GetIsGrounded() == true)
{
return new StandingState();
}
return null;
}
示例3: EnterState
public void EnterState(Player player)
{
if (player.GetMoveController().isStunned == false)
{
player.Jump();
player.SetIsGrounded(false);
}
}
示例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();
}
}
示例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);
}
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}