이전 게시물들/메모1
Player 이동, 애니메이션
joypoolstudio
2019. 12. 10. 15:47
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));
}
}