コード例 #1
0
ファイル: GoogleIndexingDemo.cs プロジェクト: nanalucky/Pet46
    // Use this for initialization
    void Start()
    {
        appIndexingPlugin = AppIndexingPlugin.GetInstance();
        appIndexingPlugin.SetDebug(0);

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

        InitGoogleIndexing();
    }
コード例 #2
0
    // Use this for initialization
    void Start()
    {
        appIndexingPlugin = AppIndexingPlugin.GetInstance();
        appIndexingPlugin.SetDebug(0);

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

        InitGoogleIndexing();
    }
コード例 #3
0
ファイル: AppIndexingPlugin.cs プロジェクト: nanalucky/Pet46
    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;
    }
コード例 #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);
    }