protected override void UpdateDisplay() { if (!Target.Active) { MapDisplay.SafeDestroy(gameObject); } transform.position = WorldGenUtility.WorldToMeshPoint(Target.tile.position); }
private static Vector3 RoadPosition(Vector2Int position) => WorldGenUtility.WorldToMeshPoint(position) + Vector3.up * 0.2f;
private static T InstantiateOnMap <T>(T t, Vector2Int position, Transform parent) where T : Object { T instance = Instantiate(t, WorldGenUtility.WorldToMeshPoint(position), Quaternion.identity, parent); return(instance); }