Esempio n. 1
0
 public void HighlightCells(Coord[] coords, Color color)
 {
     DisableHighlights();
     foreach (var coord in coords)
     {
         _spawnManager.SpawnModel(HighlightAsset, coord.ToAdjustedVector3(), (obj) =>
         {
             _activeHighlights.Add(obj);
             obj.GetComponent <MeshRenderer>().material.color = color;
         });
     }
 }