Exemplo n.º 1
0
        void Awake()
        {
            gameObject.hideFlags = HideFlags.HideAndDontSave;
            DontDestroyOnLoad(gameObject);

            if (null == _instance)
            {
                _instance = this;
            }
        }
        void Awake()
        {
            gameObject.hideFlags = HideFlags.HideAndDontSave;
            DontDestroyOnLoad (gameObject);

            if (null == _instance) {
                _instance = this;
            }
        }