private void SetPathLineTiles(List <COORD> coords) { // if (_unit.team != DataConfig.TEAM.ENEMY) { // return; // } if (_lastPathLineTiles != null) { foreach (COORD c in _lastPathLineTiles) { _mapGrid.ClearHotField(c.x, c.z); } _lastPathLineTiles = null; } _lastPathLineTiles = coords; if (_lastPathLineTiles != null) { foreach (COORD c in _lastPathLineTiles) { _mapGrid.AddHotField(c.x, c.z); } } }