示例#1
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);
        }
    }
示例#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);
        }
    }