Cleaned up the "Projectile.cs" file to remove personal comments and attempted solution to fixing the issue of units not being able to shoot arrows backward.
- Fixed the conditional the projectile class uses to determine if a projectile should be angled or not;
- Fixed an issue where the graphic for the castle upgrade was missing.
Updated the function that changes the angle of the straigth projectile to work better the closer the enemy is to the shooter.
There is some more fixes to be done, as those close angles are too vertical.
Merge in CGD/gather-and-defend from origin/feature/CastleUnitImplementation to main
* commit 'e36d43d69ab6aa1092511fbb237421785f3c25c7':
- Fixed an issue where the castle arrow couldn't fire at enemies in an angle, and only straight forward; - Modified the castle's infos so that it fires only 4 arrows per intervals instead of 5.
Implemented the basis for the castle unit, including having it shoot, the shooting range, and the upgrading logic.
Implemented Castle data to the game. The only thing it's missing is the attack pattern.
Merge in CGD/gather-and-defend from UpgradeIndividuel to main
* commit '196740676df3a8b2b1cfa877b0b61dabdda497e0':
Permettre 1 à 3 upgrades
Suppression debug logs
Revert UI
Utilisation du UI d'Élia
Ajout ScriptableObject pour UnitUpgrades
Affichage bouttons interactifs + Suppression dummy gameobjects in Game scene
Debuggins
Change l'unité par l'upgrade choisi
Début lien entre upgradeUI et Unité
Rendu UpgradePlacementButton.cs indépendant des héritages de UnitPlacementButtons.
Prefab UpgadeButtons, utilisation de EventSystems pour clique sur unités.
Tentative d'associer le clique utilisateur à une position sur le jeu
Merge in CGD/gather-and-defend from bugfix/WaveConfigNullCheck to main
* commit '2ff59828210c23b0706da1e934aabadc5a60b52e':
- Retiré temporairement l'erreur qui apparaît quand on intéragit avec un niveau qui n'a pas de WaveConfig.
Merge in CGD/gather-and-defend from feature/separate_cooldown_from_units to main
* commit '927c08559f2f0c8850be6c9b3e170165e8bccb27':
extraire les prix et cooldowns des unit cards
problème : le fait que les prix et les cooldowns étaient dans les game objects directement rendait le design compliqué
solution : créer un scriptable object pour contenir l'info des unit cards