mihai9323 / Jocoi

0 stars 0 forks source link

HerdTarget #6

Closed mihai9323 closed 9 years ago

mihai9323 commented 9 years ago

This class moves the gameobject that the herd follows to a new position. The possible positions of the object are defined in LevelData, under the name herdWaypoints. After the gameObject is moved, the function CallSheepDelay is used to send the information to the SeepInHerd that they need to move. Note that CallSheepDelay returns IEnumerator. This function should call the sheep one by one with a delay defined in the parameters of the function.