void GoToMiniGame() { //UIDressing.Instance.closePopup (); selected = true; monsterBar.Select(); removeButtons(); MiniGameController.Instance.StartRandomGame(null); }
public void Done() { if (selected) { return; } selected = true; monsterBar.Select(); Invoke("GotoGame", 1f); GetComponent <UIPopupPanel> ().PopOut(); if (GameplayController.Instance.CurrentLevelIndex == 0) { TutorialController.Instance.EndTutorial(); } if (selectedMonster != null) { Analitics.Instance.treckEvent( AnaliticsCategory.GamePlay, AnaliticsAction.SelectMonster + " " + selectedMonster.name + " Evolve_" + (selectedMonster.Gage + 1), "Level_" + (GameplayController.Instance.CurrentLevelIndex + 1), (long)selectedMonster.MonsterType ); } }
public void Done() { if (selected || currentMonster == null || !currentMonster.IsReady || currentMonster.MiniGame == MiniGameController.GameType.None) { return; } selected = true; monsterBar.Select(); Invoke("GotoMiniGame", 1f); if (ButtonNext != null) { ButtonNext.SetActive(false); } if (ButtonPrevious != null) { ButtonPrevious.SetActive(false); } StatusBubble.SetActive(false); }
public void Done() { if (selected) { return; } selected = true; monsterBar.Select(); Invoke("GotoGame", 1f); GetComponent <UIPopupPanel>().PopOut(); if (GameplayController.Instance.CurrentLevelIndex == 0) { TutorialController.Instance.EndTutorial(); } if (selectedMonster != null) { Analytics.Instance.TrackEvent(FirebaseCustomEventNames.EventSelectMonster, new Parameter(FirebaseCustomParameterNames.ParameterLevel, GameplayController.Instance.CurrentLevelIndex + 1), new Parameter(FirebaseCustomParameterNames.ParameterMonsterType, selectedMonster.MonsterType.ToString()), new Parameter(FirebaseCustomParameterNames.ParameterMonsterEvolution, selectedMonster.Gage + 1)); } }