【Unity】GameObjectをキーボードで操作する方法③

using System.Collections; using System.Collections.Generic; using UnityEngine; public class PlayerManager : MonoBehaviour { // ブロックレイヤー public LayerMask blockLayer; private Rigidbody2D rbody; // 移動速度固定値 private const float MOVE_SPEED = 3; // 移動速度 private float moveSpeed; private …