コード例 #1
0
ファイル: AdmobGA.cs プロジェクト: SonGit/NailGame
    public GoogleAnalyticsV3 GA;    // instance of Google Analytics 

    void Awake()
    {
        if (load == null)
        {
            // Makes the object target not be destroyed automatically when loading a new scene
            DontDestroyOnLoad(gameObject); 
            load = this;
        }
        else if (load != this)
        {
            Destroy(gameObject);
        }
    }
コード例 #2
0
    public GoogleAnalyticsV3 GA;    // instance of Google Analytics

    void Awake()
    {
        if (load == null)
        {
            // Makes the object target not be destroyed automatically when loading a new scene
            DontDestroyOnLoad(gameObject);
            load = this;
        }
        else if (load != this)
        {
            Destroy(gameObject);
        }
    }