-
-
Save todorok1/ef51c62d928f99356b03d97328630b53 to your computer and use it in GitHub Desktop.
シンプルRPGチュートリアル第6回 操作キャラクターの移動を制御するクラス
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> | |
| /// 座標計算のベースとなるTilemapへの参照です。 | |
| /// </summary> | |
| [SerializeField] | |
| Tilemap _baseTilemap; | |
| /// <summary> | |
| /// キャラクターの移動にかかる時間です。 | |
| /// </summary> | |
| [SerializeField] | |
| float _moveTime = 0.25f; | |
| /// <summary> | |
| /// 移動するキャラクターのAnimatorです。 | |
| /// </summary> | |
| Animator _animator; | |
| /// <summary> | |
| /// Tilemap上における現在の論理的な座標です。 | |
| /// </summary> | |
| Vector3Int _posOnTile = Vector3Int.zero; | |
| /// <summary> | |
| /// 移動中かどうかのフラグです。 | |
| /// </summary> | |
| bool _isMoving; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment