コード例 #1
0
ファイル: Hint.cs プロジェクト: lucidBrot/mineDeeper
 /**
  * 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;
 }
コード例 #2
0
ファイル: HintManager.cs プロジェクト: CookieNoir/LudumDare48
 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);
     }
 }
コード例 #3
0
ファイル: Hint.cs プロジェクト: lucidBrot/mineDeeper
 public Hint([CanBeNull] BoardCell concernedCell, HintTypes hintType, string text, BoardCell cellToHighlight) :
     this(concernedCell, hintType, text, new List <BoardCell>())
 {
     this.CellsToHighlight.Add(cellToHighlight);
 }