private void Aim()
 {
     if (cardController.GetCard().castType != Card.CastType.None)
     {
         if (cardController.GetCard().castType == Card.CastType.AoE)
         {
             line.enabled = false;
         }
         else
         {
             line.SetPosition(0, originalLocation);
         }
         Vector2 mousePosition = Camera.main.ScreenToWorldPoint(new Vector3(Input.mousePosition.x, Input.mousePosition.y, 0));
         line.SetPosition(1, mousePosition);
         if (cardController.CheckIfValidCastLocation(RoundVector(mousePosition)))
         {
             castLocation = RoundVector(mousePosition);
         }
         moveShadow.transform.position = castLocation;
     }
     else
     {
         line.enabled = false;
         moveShadow.transform.localScale = new Vector2(100, 100);
     }
 }
    private void Aim()
    {
        moveShadow.transform.localScale = new Vector2(1 / moveShadow.transform.parent.localScale.x, 1 / moveShadow.transform.parent.localScale.x);
        Card card = cardController.GetCard();

        if (card.castType != Card.CastType.None)
        {
            //if (card.castType == Card.CastType.AoE)

            if (card.castType == Card.CastType.TargetedAoE)
            {
                TileCreator.tileCreator.DestryTiles(this.gameObject, 1);
                if (cardController.CheckIfValidCastLocation(GridController.gridController.GetRoundedVector(Camera.main.ScreenToWorldPoint(new Vector3(Input.mousePosition.x, Input.mousePosition.y, 0)), 1)))
                {
                    TileCreator.tileCreator.CreateTiles(this.gameObject, GridController.gridController.GetRoundedVector(Camera.main.ScreenToWorldPoint(new Vector3(Input.mousePosition.x, Input.mousePosition.y, 0)), 1), card.castShape, card.radius, Color.red, 1);
                }
            }
            //else
            line.enabled = true;
            line.SetPosition(0, originalLocation);
            Vector2 mousePosition = Camera.main.ScreenToWorldPoint(new Vector3(Input.mousePosition.x, Input.mousePosition.y, 0));
            line.SetPosition(1, mousePosition);
            if (cardController.CheckIfValidCastLocation(GridController.gridController.GetRoundedVector(mousePosition, 1)))
            {
                castLocation = GridController.gridController.GetRoundedVector(mousePosition, 1);
            }
            else
            {
                castLocation = originalLocation;
            }
            moveShadow.transform.position = castLocation;
        }
        else
        {
            moveShadow.transform.localScale = new Vector2(100, 100);
            line.enabled = false;
        }
    }