//---------------------------------------------------------- // Event //---------------------------------------------------------- public void EventBonusGameOnRelease() { Debug.Log("EventLessonOnRelease"); ev.EventOnRelease(); if (ev.isCurPrevDist && BonusRuleShowTime >= 1) { BonusGameStart(); } }
//---------------------------------------------------------- // Event //---------------------------------------------------------- public void EventLetterOnRelease(Transform letterClone) { //Debug.Log("EventLetterOnRelease"); ev.EventOnRelease(); if (ev.isCurPrevDist) { gameComponent.SetLetterPrefab(letterClone); if (g.isGameMemory) { TouchLetter(); } else if (g.isGameMole) { TouchLetter(); } //else if (g.isGameShooting) TouchLetter(); else if (g.isGameBlank) { gameBlank.EventLetterOnRelease(); } else if (g.isGameHint) { gameHint.EventLetterOnRelease(); } else if (g.isGameBonus) { gameBonus.EventLetterOnRelease(letterClone); } } }
//--------------------------------------------------------------- // Shop Popup //--------------------------------------------------------------- public void EventShowShopPopup() { Debug.Log("EventShowShopPopup"); ev.EventOnRelease(); if (ev.isCurPrevDist) { audioSource.clip = menuClip; audioSource.Play(); shopPopupPanelUIPanel.depth = 3; g.isPopupShopShow = true; myCoinUILabel.text = g.coin.ToString(); PopupBg2.SetActive(true); shopPopupAnimator.SetBool("isLeftMiddleMove", true); } }