12345678910111213141516 |
- using System;
- using UnityEngine;
- public class CameraMgr : MonoBehaviour
- {
- private void Start()
- {
- }
- private void Update()
- {
- Vector3 a = new Vector3(NInput.GetAxis("Horizontal"), NInput.GetAxis("FrontBack"), NInput.GetAxis("Vertical")) * 5f;
- base.gameObject.transform.position += a * Time.deltaTime;
- base.gameObject.transform.eulerAngles += new Vector3(0f, NInput.GetAxis("Side") * 100f * Time.deltaTime, 0f);
- }
- }
|