コード例 #1
0
        void Awake()
        {
            gameObject.hideFlags = HideFlags.HideAndDontSave;
            DontDestroyOnLoad(gameObject);

            if (null == _instance)
            {
                _instance = this;
            }
        }
コード例 #2
0
        void Awake()
        {
            gameObject.hideFlags = HideFlags.HideAndDontSave;
            DontDestroyOnLoad (gameObject);

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