void Awake()
    {
        Debug.Log ("VisualUtilies::Awake() called");
        if (VUInstance == null)
        {
            VUInstance = this;
        } else if (VUInstance != this)
        {
            Destroy (gameObject);
        }

        DontDestroyOnLoad(gameObject);

        Init();
    }
Beispiel #2
0
    void Awake()
    {
        Debug.Log("VisualUtilies::Awake() called");
        if (VUInstance == null)
        {
            VUInstance = this;
        }
        else if (VUInstance != this)
        {
            Destroy(gameObject);
        }

        DontDestroyOnLoad(gameObject);

        Init();
    }