gather-and-defend/Assets/TilePlaceholder.cs
Felix Boucher 33fb1ffeee test scene, render issues, collision issues
problems :
- there were no test scene
- units would appear weird over some tiles
- units would not recognize some tiles when trying to know if it could place itself on it

solution :
- added test scene
- tweaked sorting layers in units
- added IsCollidable parameter in ILevelObject
2023-06-08 23:51:45 -04:00

11 lines
275 B
C#

using UnityEngine;
public class TilePlaceholder : DraggablePlaceholder
{
public LevelTile Tile { get; set; }
public override void Place()
{
LevelManager.Instance.DynamicTilemap.SetTile(Vector3Int.RoundToInt(transform.position), Tile);
}
}