IEnumerator pagethree() { _ImageMove.ImageMoveTo("left", allSp[3]); ShowButton(4, 5); QuHuButtons(false, false); quekuai.SetActive(false); yield return(new WaitForSeconds(2f)); LeftButtonBG.sprite = buttonSp[2]; In2.SetActive(true); threeButton.SetActive(true); Invoke("start2", 1f); //_ImagesMove.allSp = sp1; _ImagesMove.allSp = sp3; _ImagesMove.Reset(); if (_GameData.gameState == GameData.GameState.Six) { //_ButtonClick.ResetButtonImage(); //for (int i = 0; i < sixButton1.Length; i++) //{ // try // { // sixButton1[i].gameObject.SetActive(true); // sixButton2[i].gameObject.SetActive(false); // } // catch (System.Exception) // { // } //} } }
public void SixButton2() { if (_BookData.bookState == BookData.BookState.pageOne) { button2.sprite = buttonAllSp_1[1]; button1.sprite = buttonAllSp1[0]; button3.sprite = buttonAllSp1[2]; BackGround.sprite = bgSp[1]; } if (_BookData.bookState == BookData.BookState.pageThree && ImagesMove.canMove) { button2.sprite = buttonAllSp_1[1]; button1.sprite = buttonAllSp1[0]; button3.sprite = buttonAllSp1[2]; _BookData.sp1 = _GameData.sixSp2_2; _ImagesMove.allSp = _GameData.sixSp2_2; _ImagesMove.Reset(); _GameData.HuxingButtons[5].SetActive(false); _GameData.HuxingButtons[6].SetActive(true); _GameData.HuxingButtons[7].SetActive(false); mid.sprite = _GameData.sixSp4[1]; //_ImagesMove.Reset(); } }