728x90 ๋ฐ์ํ ์ ๋ํฐWASD1 [Unity] ์บ๋ฆญํฐ๋ฅผ WASDํค๋ก ์ด๋์ํค๊ธฐ 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 public class PlayerController : MonoBehaviour { void Start() { } void Update() { // w ->์ if (Input.GetKey(KeyCode.W)) { transform.position += new Vector3(0.0f, 0.0f, 1.0f); } // s->๋ค if (Input.GetKey(KeyCode.S)) { transform.position -= new Vector3(0.0f, 0.0f, 1.0f); } if (Input.GetKey(KeyCode.A)) { tran.. 2021. 8. 18. ์ด์ 1 ๋ค์ 728x90 ๋ฐ์ํ