|
@@ -69,7 +69,7 @@ public class ButtonMenuTransitionEvent : MonoBehaviour
|
|
NotificationCenter.Post(NotificationType.MenuTransition,
|
|
NotificationCenter.Post(NotificationType.MenuTransition,
|
|
MenuManager.MenuTransition.ExitToMainMenu);
|
|
MenuManager.MenuTransition.ExitToMainMenu);
|
|
LivesManager.Instance.ResetLive();
|
|
LivesManager.Instance.ResetLive();
|
|
- if (PlayerPrefs.GetInt("GUEST") == 1)
|
|
|
|
|
|
+ if (PlayerPrefs.GetInt("GUEST") != 1)
|
|
{
|
|
{
|
|
MenuManager._instance.FBShareDialog.Show();
|
|
MenuManager._instance.FBShareDialog.Show();
|
|
}
|
|
}
|
|
@@ -150,7 +150,7 @@ public class ButtonMenuTransitionEvent : MonoBehaviour
|
|
NotificationCenter.Post(NotificationType.MenuTransition,
|
|
NotificationCenter.Post(NotificationType.MenuTransition,
|
|
MenuManager.MenuTransition.ExitToMainMenu);
|
|
MenuManager.MenuTransition.ExitToMainMenu);
|
|
LivesManager.Instance.ResetLive();
|
|
LivesManager.Instance.ResetLive();
|
|
- if (PlayerPrefs.GetInt("GUEST") == 1)
|
|
|
|
|
|
+ if (PlayerPrefs.GetInt("GUEST") != 1)
|
|
{
|
|
{
|
|
MenuManager._instance.FBShareDialog.Show();
|
|
MenuManager._instance.FBShareDialog.Show();
|
|
}
|
|
}
|
|
@@ -204,7 +204,7 @@ public class ButtonMenuTransitionEvent : MonoBehaviour
|
|
if (gameObject.name == "ButtonContinue" || CloseGameOver)
|
|
if (gameObject.name == "ButtonContinue" || CloseGameOver)
|
|
{
|
|
{
|
|
|
|
|
|
- var curLEvel = LevelsManager.Instance.CurrentLevelIndex+1;
|
|
|
|
|
|
+ var curLEvel = LevelsManager.Instance.CurrentLevelIndex + 1;
|
|
if (MenuManager._instance.gameOverSummaryScreen.gameObject.activeSelf)
|
|
if (MenuManager._instance.gameOverSummaryScreen.gameObject.activeSelf)
|
|
{
|
|
{
|
|
if (curLEvel == 1 )
|
|
if (curLEvel == 1 )
|
|
@@ -274,7 +274,7 @@ public class ButtonMenuTransitionEvent : MonoBehaviour
|
|
NotificationCenter.Post(NotificationType.MenuTransition,
|
|
NotificationCenter.Post(NotificationType.MenuTransition,
|
|
MenuManager.MenuTransition.ExitToMainMenu);
|
|
MenuManager.MenuTransition.ExitToMainMenu);
|
|
LivesManager.Instance.ResetLive();
|
|
LivesManager.Instance.ResetLive();
|
|
- if (PlayerPrefs.GetInt("GUEST") == 1)
|
|
|
|
|
|
+ if (PlayerPrefs.GetInt("GUEST") != 1)
|
|
{
|
|
{
|
|
MenuManager._instance.FBShareDialog.Show();
|
|
MenuManager._instance.FBShareDialog.Show();
|
|
}
|
|
}
|