public void NextStage() { int index = SceneTranlater.GetCurrentBuildIndex(); if (index < 4) { SceneManager.LoadScene(index + 1); } }
private void Start() { int index = SceneTranlater.GetCurrentBuildIndex(); objs[Mathf.Clamp(index - 2, 0, objs.Count - 1)].SetActive(true); if (index == (int)SceneIndex.THIRD) { StartCoroutine(BecomeLarger()); //第三关UI变大 } m_rankImage.sprite = m_rankSprites[ScoreManager.Instance.GetRank()]; }