Beispiel #1
0
 public void CreateOperationCentre(HexCell cell, Player player)
 {
     if (!cell.OpCentre)
     {
         OperationCentre instance = Instantiate(opCentrePrefab);
         instance.transform.localPosition = HexMetrics.Perturb(cell.Position);
         instance.Location = cell;
         instance.Player   = player;
         instance.Player.AddOperationCentre(instance);
         cell.SpecialIndex = 3;
         hexGrid.AddOperationCentre(instance);
     }
 }