Skip to content

Instantly share code, notes, and snippets.

@todorok1
Created March 12, 2025 06:09
Show Gist options
  • Save todorok1/6779b0948cb3252e548f37253e0549e7 to your computer and use it in GitHub Desktop.
Save todorok1/6779b0948cb3252e548f37253e0549e7 to your computer and use it in GitHub Desktop.
シンプルRPGチュートリアル第44回 操作キャラの移動制御を行うクラス
/// <summary>
/// キー入力を確認します。
/// </summary>
void CheckMoveInput()
{
// 既に移動中の場合は移動キーの入力を確認せず抜けます。
if (_isMoving)
{
return;
}
// 移動のポーズフラグがtrueなら処理を抜けます。
if (_isMovingPaused)
{
return;
}
var moveDirection = Vector2Int.zero;
MoveAnimationDirection animDirection = MoveAnimationDirection.Front;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment