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
11 lines
275 B
C#
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);
|
|
}
|
|
} |