コード例 #1
0
 public void CleanCardSelected(CleaningCard token)
 {
     tokenImage.SetActive(true);
     infoImage.sprite = allInfoSprites[10];
     infoText.text    = token.Discription;
     infoName.text    = token.TokenName;
     infoCard.SetActive(true);
     gameMaster.HighlightDirtyFields(token);
 }
コード例 #2
0
 public void HighlightDirtyFields(CleaningCard token)
 {
     tokenInHand = token;
     for (int i = 0; i < map.Length; i++)
     {
         for (int j = 0; j < map[i].tiles.Length; j++)
         {
             if (!map[i].tiles[j].PlaneOnField && map[i].tiles[j].Dirty)
             {
                 map[i].tiles[j].IsBuildable = true;
             }
         }
     }
     cardObject.GetComponent <CardObject>().SetUp(BuildingType.None);
     checkTileMapCoroutine = StartCoroutine(CheckTileMapHeighlight(BuildingType.None));
 }