void Update() { UpdateTimerUI(); ChangeCursorLock(); if (scoreMaximoSalvo != PlayerPrefs.GetInt(levelIndex + "Stars")) { scoreMaximoSalvo = PlayerPrefs.GetInt(levelIndex + "Stars"); } _txtFragments.text = Fragments.ToString(); if (completeLevelUI.activeSelf == true) { if (Input.GetButtonDown("A")) { print("A"); } if (Input.GetButtonDown("X")) { print("x"); } if (Input.GetButtonDown("B")) { print("B"); } if (Input.GetButtonDown("Y")) { print("Y"); } } }
private void Start() { if (!ControllerManager) { ControllerManager = GameObject.Find("ControllerManager"); } //ghost.recording = true; _txtFragments.text = Fragments.ToString(); CurrentLevel = SceneManager.GetActiveScene().buildIndex; levelIndex = SceneManager.GetActiveScene().buildIndex - 1; if (SceneManager.sceneCount == 1) { secondsCount = 0; } }