Exemplo n.º 1
0
        public bool MoveTower(Vector2 position)
        {
            this.position        = position;
            TargetTower.Position = position;

            return(canPlace = !towerManager.OverlapsAnyTowers(TargetTower) &&
                              towerManager.CanPlaceOnMap(TargetTower, MapManager.LoadedMap) &&
                              !MouseOverlapsUI.IsMouseOverUI());
        }