Sorry Im new to unity in advance. Im going for a single 2D platform that when I jump on it enemies will stop following the player and the enemies will move towards a game object(such as a jumpad) and then continue to follow after they collide with the game object.
So far I have enemies moving towards the Player
void Update()
{
transform.position = Vector2.MoveTowards(transform.position, Player.position, speed * Time.deltaTime);
↧