Esempio n. 1
0
        private void OnEnable()
        {
            #if UNITY_5_4_OR_NEWER
            UnityEngine.Random.InitState(System.DateTime.Now.Millisecond);
            #else
            UnityEngine.Random.seed = System.DateTime.Now.Millisecond;
            #endif

            EditorApplication.update -= EditorUpdate;
            EditorApplication.update += EditorUpdate;

            _prefabPreviewGenerator.DestroyData();
            EditorWindowPool.RepaintAll();
        }
Esempio n. 2
0
 private void Reset()
 {
     _transform = transform;
     DestroyPools();
     _prefabPreviewGenerator.DestroyData();
 }