void Awake()
    {
//		Debug.Log("keepon: " + wordlScene);
        if (instance == null)
        {
            instance = this;
        }
        else
        {
            Destroy(gameObject);
        }
        DontDestroyOnLoad(gameObject);

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

                #if UNITY_IOS
        Application.targetFrameRate = 60;
                #endif
    }
Example #2
0
    void Awake()
    {
                #if UNITY_IOS
        if (FB.IsInitialized)
        {
            FB.ActivateApp();
        }
        else
        {
            //Handle FB.Init
            FB.Init(() => {
                FB.ActivateApp();
            });
        }
                #endif

        if (instance == null)
        {
            instance = this;
        }
        else
        {
            Destroy(gameObject);
        }
        DontDestroyOnLoad(gameObject);
                #if UNITY_IOS
        Application.targetFrameRate = 60;
                #endif
    }