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

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

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

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

        InitGoogleIndexing();
    }
Exemple #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;
    }
    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);
    }