public void Init(IntVector2 coordinates, TerrainBlock blockBeneath, float height, GameTerrain generator) { this.coordinates = coordinates; this.generator = generator; this.blockBeneath = blockBeneath; renderer = transform.GetChild(0).GetComponent <Renderer>(); SetHeight(height); startingheight = height; }
private void Awake() { instance = this; }