Moving the guards to the coin
Objective: Create a code to move the guards to the coin
First I assigned the tag “Guard” to each guard in the scene.
The idea is to create a function in the player script called “SendGuardToCoin”. This function receives as a parameter the position of the coin. …