TC_TerrainNeighbors.cs 354 B

123456789101112131415161718
  1. using UnityEngine;
  2. using System;
  3. public class TC_TerrainNeighbors: MonoBehaviour {
  4. public Terrain left;
  5. public Terrain top;
  6. public Terrain right;
  7. public Terrain bottom;
  8. public void Start()
  9. {
  10. Terrain terrain = null;
  11. terrain = GetComponent<Terrain>();
  12. terrain.SetNeighbors(left,top,right,bottom);
  13. }
  14. }