Stick.cs 275 Bytes
Newer Older
유승호's avatar
.    
유승호 committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
using UnityEngine;

public class Stick : MonoBehaviour
{
    // Start is called before the first frame update
    void Update()
    {
        Vector3 vec = new Vector3(Input.GetAxis("Horizontal"),0 ,Input.GetAxis("Vertical") );


        transform.Translate(vec);

    }


}