/** * concernedCell and hintType should identify hints that are equal */ public Hint([CanBeNull] BoardCell concernedCell, HintTypes hintType, string text, List <BoardCell> cellsToHighlight) { this.Text = text; this.CellsToHighlight = cellsToHighlight; this.ConcernedCell = concernedCell; this.HintType = hintType; }
public void SetHint(HintTypes type) { if (type != HintTypes.None) { hintGameObject.SetActive(true); hintText.text = pressDictionaryKey + ' ' + GameController.instance.interactionKey.ToString() + ' ' + hintsDictionaryKeys[(int)type]; hintBackground.sizeDelta = new Vector2(hintText.preferredWidth + widthAddition, hintBackground.sizeDelta.y); } }
public Hint([CanBeNull] BoardCell concernedCell, HintTypes hintType, string text, BoardCell cellToHighlight) : this(concernedCell, hintType, text, new List <BoardCell>()) { this.CellsToHighlight.Add(cellToHighlight); }