Example #1
0
 void Update()
 {
     if (TerrainSystem == null)
     {
         TerrainSystem = ScriptableObject.CreateInstance <TerrainSystem>().Initialise(this);
     }
     TerrainSystem.Update();
 }
Example #2
0
 void Update()
 {
     if (TerrainSystem != null && !TerrainSystem.isInitialized)
     {
         TerrainSystem.Initialise(gameObject.GetComponent <TerrainGenerator>());
     }
     if (TerrainSystem != null)
     {
         TerrainSystem.Update();
     }
 }