using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PlayerInput : MonoBehaviour
{
public string VmoveAxisName = "Vertical";//축 이름
public string HmoveAxisName = "Horizontal";//축 이름
public Vector3 move;//축 입력값
public bool fire;//버튼 입력값
void Update()
{
move = new Vector3(Input.GetAxis(HmoveAxisName), 0f, Input.GetAxis(VmoveAxisName));
}
}
'이전 게시물들 > 메모1' 카테고리의 다른 글
Random.Range(int, int) (0) | 2020.01.16 |
---|---|
RigidBody를 이용한 이동, 회전2 (0) | 2019.12.23 |
Player 이동, 애니메이션 (0) | 2019.12.10 |
이동 (0) | 2019.12.07 |
RigidBody를 이용한 이동, 회전 (0) | 2019.11.22 |