Example #1
0
 private void Awake()
 {
     Tiles = new StrategyHexTile[18];
     for (int i = 1; i < Tiles.Length; i++)
     {
         Tiles[i] = ((Component)base.transform.FindChild("Tile" + i.ToString("D2"))).GetComponent <StrategyHexTile>();
     }
     Widget   = GetComponent <UIWidget>();
     TweenPos = GetComponent <TweenPosition>();
 }
Example #2
0
 private bool isPopUpTile(List <int> newOpenAreaList, int targetNo, ref int OpenCount)
 {
     if (Tiles[targetNo].isOpen)
     {
         OpenCount++;
     }
     if (Tiles[targetNo].isRebellionTile)
     {
         RebellionTile = Tiles[targetNo];
     }
     if (newOpenAreaList == null)
     {
         return(Tiles[targetNo].isOpen || Tiles[targetNo].isRebellionTile);
     }
     return((Tiles[targetNo].isOpen || Tiles[targetNo].isRebellionTile) && !newOpenAreaList.Contains(targetNo));
 }
Example #3
0
 private void setFocusTile(int areaID)
 {
     FocusTile = Tiles[areaID];
 }