public void DoPosing(PlayerInput.DirectionType direction) { if (PlayerInput.DirectionType.IDLE != PlayerInput.direction) { audioSource.PlayOneShot(huwa); } switch (direction) { case PlayerInput.DirectionType.UP: posingController.Up(); break; case PlayerInput.DirectionType.DOWN: posingController.Down(); break; case PlayerInput.DirectionType.RIGHT: posingController.Right(); break; case PlayerInput.DirectionType.LEFT: posingController.Left(); break; case PlayerInput.DirectionType.IDLE: posingController.Idle(); break; default: break; } }
public void DoPosing(PlayerInput.DirectionType direction) { switch (direction) { case PlayerInput.DirectionType.UP: posingController.Up(); break; case PlayerInput.DirectionType.DOWN: posingController.Down(); break; case PlayerInput.DirectionType.RIGHT: posingController.Right(); break; case PlayerInput.DirectionType.LEFT: posingController.Left(); break; default: break; } }