CameraMgr.cs 429 B

12345678910111213141516
  1. using System;
  2. using UnityEngine;
  3. public class CameraMgr : MonoBehaviour
  4. {
  5. private void Start()
  6. {
  7. }
  8. private void Update()
  9. {
  10. Vector3 a = new Vector3(NInput.GetAxis("Horizontal"), NInput.GetAxis("FrontBack"), NInput.GetAxis("Vertical")) * 5f;
  11. base.gameObject.transform.position += a * Time.deltaTime;
  12. base.gameObject.transform.eulerAngles += new Vector3(0f, NInput.GetAxis("Side") * 100f * Time.deltaTime, 0f);
  13. }
  14. }