예제 #1
0
        public bool AddUnits(int amount, Player player)
        {
            if (owner == player || ownerState == TileOwnedState.Free)
            {
                // This order is very important here...
                unitCount += amount;

                SetOwner(player);

                tileView.AnimateAddUnits(unitCount);

                return(true);
            }

            return(false);
        }