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>(); }
private void Start() { img.gameObject.SetActive(true); tutorialController = FindObjectOfType <TutorialController>(); dayNightCycle = FindObjectOfType <DayNightCycle>(); }