Ejemplo n.º 1
0
        private void Awake()
        {
#if UNITY_EDITOR
            ResetSceneHash();
            ChaeckDuplicationNetIdInScene();
#endif
            RecordableIdentityManager.AddRecordableSceneIdentity(sceneHash, this);
        }
Ejemplo n.º 2
0
        protected void Awake()
        {
            if (s_instance == null)
            {
                s_instance = this as RecordableIdentityManager;
            }
            else
            {
                if (s_instance != this)
                {
                    Destroy(this);
                }
            }

            if (!s_instance.isInitialized)
            {
                Initialize();
            }
        }
Ejemplo n.º 3
0
 private void OnDestroy()
 {
     RecordableIdentityManager.RemoveRecordableSceneIdentity(sceneHash);
 }