Пример #1
0
        void Update()
        {
#if UNITY_EDITOR
            if (Application.isEditor && !Application.isPlaying && Preview == null)
            {
                Preview = new TerrainPreview();
            }
#endif
            if (Application.isPlaying && Pool != null && GenerateOnStart)
            {
                Pool.Update();
            }
        }
Пример #2
0
 void Awake()
 {
     Pool    = new TilePool();
     Preview = new TerrainPreview();
 }