-
-
Save todorok1/6779b0948cb3252e548f37253e0549e7 to your computer and use it in GitHub Desktop.
シンプルRPGチュートリアル第44回 操作キャラの移動制御を行うクラス
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <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