public void OpenResult(int score, bool continued) { Result.SetText(score); MaxScore.SetText("MAX: {0}", Profile.Instance.BestScore); foreach (var panel in IngamePanels) { panel.Hide(); } if (Advertisement.IsReady() && !continued) { ContinuePanel.Show(); } else { OpenResult(); } }
public void OpenResult() { VKontaktePostStatus.SetText(null); if (Profile.Instance.UnlockedItems.Contains(Engine.Panda.Item)) { ResultPanel.Show(); } else { Profile.Instance.UnlockedItems.Add(Engine.Panda.Item); Profile.Instance.Save(); UnlockedItem.spriteName = Engine.Panda.Item.ToString(); ItemUnlockedPanel.Show(); AudioPlayer.Instance.PlayEffect(AudioPlayer.Instance.ItemUnlocked); AppMetrica.Instance.ReportEvent("ItemUnlocked", new Hashtable { { "Item", Engine.Panda.Item.ToString() } }); } }
public void CloseItemUnlocked() { ItemUnlockedPanel.Hide(); ResultPanel.Show(); }
public void ShowDialog(TweenPanel dialog) { dialog.Show(); }