示例#1
0
 public void RemoveOwnershipOfHex(Hex h)
 {
     if (OwnedHexes.Contains(h))
     {
         OwnedHexes.Remove(h);
         h.IsOwned = false;
         Debug.Log("City lost ownership of hex!");
     }
 }
示例#2
0
    //
    // Hex Ownership
    //

    public void TakeOwnershipOfHex(Hex hex)
    {
        // check if hex is already under ownership
        if (hex.IsOwned == false)
        {
            OwnedHexes.Add(hex);
            hex.OwnedByFactionID = FactionID;
            Debug.Log("Hex added to City ownership!");
        }
    }