public void ExpandMushroom(PointController clickedTile) { selectedTile.NormalVoisin(); selectedTile.Deselect(); clickedTile.NormalVoisin(); clickedTile.Deselect(); clickedTile.gameObject.GetComponent <TileBehaviour>().Colonise(selectedTile.gameObject.GetComponent <TileBehaviour>()); }
// Perform a mouse selection public void TileSelect(PointController clickedTile) { if (selectedTile != null) { selectedTile.NormalVoisin(); selectedTile.Deselect(); } if (selectedTile != null && clickedTile.positionN == selectedTile.positionN) { selectedTile = null; } else { selectedTile = clickedTile; selectedTile.Select(); if (TurnManager.mushroomActionPointsAmount != 0) { selectedTile.HighlightVoisin(); } } }