technix/Assets/script/movement/PlayerController.cs

24 lines
545 B
C#
Raw Normal View History

2020-02-06 17:00:19 +00:00
using System.Collections;
using System.Collections.Generic;
using System;
using UnityEngine;
public class PlayerController : MonoBehaviour {
public float speed;
#if tmp
public GameObject bullet;
#endif
AudioSource aus;
// Start is called before the first frame update
void Start() {
aus = GetComponent<AudioSource>();
}
// Update is called once per frame
void Update() {
2020-02-13 17:31:25 +00:00
gameObject.transform.position += new Vector3(Input.GetAxisRaw("Horizontal"), Input.GetAxisRaw("Vertical"), 0);
2020-02-06 17:00:19 +00:00
}
}