void Awake()
 {
     if (Instance != null)
     {
         return;
     }
     Instance = this;
 }
 void Awake()
 {
     if (Instance != null)
     {
         return;
     }
     Instance = this;
     //DontDestroyOnLoad(this);
     //PlayerPrefs.DeleteAll();
 }
Esempio n. 3
0
 void Awake()
 {
     if (Instance != null)
     {
         return;
     }
     Instance = this;
     if (isReset)
     {
         PlayerPrefs.DeleteAll();
     }
 }
    void Awake()
    {
        if (Instance != null)
        {
            return;
        }
        Instance = this;

        if (FB.IsInitialized)
        {
            FB.ActivateApp();
        }
        else
        {
            //Handle FB.Init
            FB.Init(() =>
            {
                FB.ActivateApp();
            });
        }
    }