//IEnumerator SpawnMaskGhost() // { // //HeartBeatEmg(); // CurHeartState = EHeartState.EHS_Find; // m_Tip.gameObject.SetActive(true); // m_Tip.text = m_tipslist.Count > 0 ? m_tipslist[0] : string.Empty; // m_AirGyroController.EnableGyro( false ); // if ( m_PreSpawnGhostEffect != null ) // m_PreSpawnGhostEffect.gameObject.SetActive (true); // yield return new WaitForSeconds (m_PreSpawnGhostEffectTime); // //StartCoroutine(MobileVibrate()); // StartCoroutine(SearchingMaskGhost()); // m_Ghost.m_ghostState = DragonGhost.EGhostState.EGS_CATCHABLE; // yield break; // } void CatchedGhost(DragonGhost ghost) { ghost.m_ghostState = DragonGhost.EGhostState.EGS_CATCHED; m_GhostStateList[m_curGhostIndex] = DragonGhost.EGhostState.EGS_CATCHED; m_curCatchGhostTime = ghost.m_attacktime - Time.deltaTime * 3; DragonAchievementManager.Instance().OnCatchGhost(ghost.m_nGhostID); }
public static DragonAchievementManager Instance() { if (s_instance == null) { s_instance = new DragonAchievementManager(); } return(s_instance); }
private void _ShowSingleSprite(UISprite sp1, UISprite sp2, int nIndex) { AchievementData data = AchievementTableManager.Instance().GetAchievementDataByIndex(nIndex); int nStatus = DragonAchievementManager.Instance().GetAchievementStatus(nIndex); sp2.spriteName = data.m_strBackgroundIcon; if (nStatus == 0) { sp1.spriteName = "Question"; } else { sp1.spriteName = data.m_strIcon; } }
private void _Init() { int nSceneID = SceneManager.GetActiveScene().buildIndex; if (nSceneID == 0) { // lobby DragonBuffManager.Instance().Init(); DragonAchievementManager.Instance().Init(); } else if (nSceneID == 1) { // Ghost Game } else if (nSceneID == 2) { // Money DragonBuffManager.Instance().Init2(); } }