コード例 #1
0
    void Awake()
    {
        Debug.Log ("VisualUtilies::Awake() called");
        if (VUInstance == null)
        {
            VUInstance = this;
        } else if (VUInstance != this)
        {
            Destroy (gameObject);
        }

        DontDestroyOnLoad(gameObject);

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

        DontDestroyOnLoad(gameObject);

        Init();
    }