using Unity.Mathematics; using UnityEngine; namespace DanieleMarotta.RiversongCodeShowcase { public interface ITileSpace { float TileSize { get; } int2 WorldToTile(Vector3 position); Vector3 TileToWorld(int2 tile, float tileX = 0.5f, float tileY = 0.5f); int GetElevation(float y); Vector3 GetRectWorldCenter(in TileRect rect); } }