|
@@ -70,6 +70,8 @@ public class ButtonMenuTransitionEvent : MonoBehaviour
|
|
|
MenuManager.MenuTransition.ExitToMainMenu);
|
|
|
LivesManager.Instance.ResetLive();
|
|
|
MenuManager._instance.FBShareDialog.Show();
|
|
|
+ PlayerPrefs.SetInt("Level", 0);
|
|
|
+ PlayerPrefs.Save();
|
|
|
}
|
|
|
else
|
|
|
{
|
|
@@ -145,6 +147,8 @@ public class ButtonMenuTransitionEvent : MonoBehaviour
|
|
|
MenuManager.MenuTransition.ExitToMainMenu);
|
|
|
LivesManager.Instance.ResetLive();
|
|
|
MenuManager._instance.FBShareDialog.Show();
|
|
|
+ PlayerPrefs.SetInt("Level", 0);
|
|
|
+ PlayerPrefs.Save();
|
|
|
}
|
|
|
NotificationCenter.Post(NotificationType.MenuTransition, transition);
|
|
|
}
|
|
@@ -264,6 +268,7 @@ public class ButtonMenuTransitionEvent : MonoBehaviour
|
|
|
MenuManager.MenuTransition.ExitToMainMenu);
|
|
|
LivesManager.Instance.ResetLive();
|
|
|
MenuManager._instance.FBShareDialog.Show();
|
|
|
+ PlayerPrefs.SetInt("Level", 0);
|
|
|
//if (FlurryLogger.Instance)
|
|
|
//{
|
|
|
// FlurryLogger.Instance.EndGame();
|