Exemple #1
0
        void Awake()
        {
            //Screen.SetResolution(Screen.width, (Screen.width * 16) / 9, true);

            //playerCamera = Camera.main.transform;
            Cursor.lockState = CursorLockMode.Confined;
            Cursor.lockState = CursorLockMode.Locked;
            Cursor.visible   = false;

            animator           = GetComponent <Animator>();
            statusController   = FindObjectOfType <StatusController>();
            tutorialController = FindObjectOfType <TutorialController>();
            _rigidbody         = GetComponent <Rigidbody>();
        }
Exemple #2
0
 private void Start()
 {
     img.gameObject.SetActive(true);
     tutorialController = FindObjectOfType <TutorialController>();
     dayNightCycle      = FindObjectOfType <DayNightCycle>();
 }