Attack uses OverlapCastAll instead of CircleCastAll

Swing is more accurate now
This commit is contained in:
2024-10-25 13:24:47 -07:00
parent 2f8fbe8ce7
commit 18b5d96b79
3 changed files with 18 additions and 13 deletions

View File

@@ -21,7 +21,7 @@ public class ShopButton : MonoBehaviour
Teo player = GameObject.FindGameObjectWithTag("Player").GetComponent<Teo>();
switch (upgrade) {
case UpgradeOption.AttackRange:
player.swingRange += amount;
player.swingRangeDeg += amount;
break;
case UpgradeOption.AttackDistance:
player.swingDistance += amount;