Esempio n. 1
0
    // Use this for initialization
    void Start()
    {
        appIndexingPlugin = AppIndexingPlugin.GetInstance();
        appIndexingPlugin.SetDebug(0);

        utilsPlugin = UtilsPlugin.GetInstance();
        utilsPlugin.SetDebug(0);

        InitGoogleIndexing();
    }
Esempio n. 2
0
    // Use this for initialization
    void Start()
    {
        appIndexingPlugin = AppIndexingPlugin.GetInstance();
        appIndexingPlugin.SetDebug(0);

        utilsPlugin = UtilsPlugin.GetInstance();
        utilsPlugin.SetDebug(0);

        InitGoogleIndexing();
    }
Esempio n. 3
0
    public static AppIndexingPlugin GetInstance()
    {
        if(instance==null){
            container = new GameObject();
            container.name="AppIndexingPlugin";
            instance = container.AddComponent( typeof(AppIndexingPlugin) ) as AppIndexingPlugin;
            DontDestroyOnLoad(instance.gameObject);
            aupHolder = AUPHolder.GetInstance();
            instance.gameObject.transform.SetParent(aupHolder.gameObject.transform);
        }

        return instance;
    }
Esempio n. 4
0
    public static AppIndexingPlugin GetInstance()
    {
        if (instance == null)
        {
            container      = new GameObject();
            container.name = "AppIndexingPlugin";
            instance       = container.AddComponent(typeof(AppIndexingPlugin)) as AppIndexingPlugin;
            DontDestroyOnLoad(instance.gameObject);
            aupHolder = AUPHolder.GetInstance();
            instance.gameObject.transform.SetParent(aupHolder.gameObject.transform);
        }

        return(instance);
    }