public void SnapAction(object name) { TropheeInfo trophee = TropheesManager.Instance.GetTropheeByName(name.ToString()); if (trophee && name.ToString() == trophee.Name) { StartCoroutine("ChangeScene", trophee.Level); } }
private void UnLockNextLevelTrophee() { // Get active scene and unlock nex level trophee Scene scene = SceneManager.GetActiveScene(); TropheeInfo trophee = TropheesManager.Instance.GetTropheeByLevel(scene.name); TropheeInfo nextLevelTrophee = TropheesManager.Instance.GetTropheeByLevelNumber(trophee.LevelNumber + 1); if (nextLevelTrophee) { nextLevelTrophee.IsLocked = false; } }