|
@@ -69,7 +69,11 @@ public class ButtonMenuTransitionEvent : MonoBehaviour
|
|
|
NotificationCenter.Post(NotificationType.MenuTransition,
|
|
|
MenuManager.MenuTransition.ExitToMainMenu);
|
|
|
LivesManager.Instance.ResetLive();
|
|
|
- MenuManager._instance.FBShareDialog.Show();
|
|
|
+ if (PlayerPrefs.GetInt("GUEST") == 1)
|
|
|
+ {
|
|
|
+ MenuManager._instance.FBShareDialog.Show();
|
|
|
+ }
|
|
|
+
|
|
|
PlayerPrefs.SetInt("Level", 0);
|
|
|
PlayerPrefs.Save();
|
|
|
}
|
|
@@ -146,7 +150,10 @@ public class ButtonMenuTransitionEvent : MonoBehaviour
|
|
|
NotificationCenter.Post(NotificationType.MenuTransition,
|
|
|
MenuManager.MenuTransition.ExitToMainMenu);
|
|
|
LivesManager.Instance.ResetLive();
|
|
|
- MenuManager._instance.FBShareDialog.Show();
|
|
|
+ if (PlayerPrefs.GetInt("GUEST") == 1)
|
|
|
+ {
|
|
|
+ MenuManager._instance.FBShareDialog.Show();
|
|
|
+ }
|
|
|
PlayerPrefs.SetInt("Level", 0);
|
|
|
PlayerPrefs.Save();
|
|
|
}
|
|
@@ -267,7 +274,10 @@ public class ButtonMenuTransitionEvent : MonoBehaviour
|
|
|
NotificationCenter.Post(NotificationType.MenuTransition,
|
|
|
MenuManager.MenuTransition.ExitToMainMenu);
|
|
|
LivesManager.Instance.ResetLive();
|
|
|
- MenuManager._instance.FBShareDialog.Show();
|
|
|
+ if (PlayerPrefs.GetInt("GUEST") == 1)
|
|
|
+ {
|
|
|
+ MenuManager._instance.FBShareDialog.Show();
|
|
|
+ }
|
|
|
PlayerPrefs.SetInt("Level", 0);
|
|
|
//if (FlurryLogger.Instance)
|
|
|
//{
|