Help with a Pirahna Plant type enemy
Hi, I'm trying to create a Pirahna plant type enemy (think super mario world). I am able to get it to move up and down between two set points, however I am having difficulty getting it to sit still for a bit. I have tried both InvokeRepeating and Coroutines, but neither seem to work. The code shown is only the move up and down code, not an attempt to add in any sort of a pause. The code is also currently set up in Update().
Code: https://pastebin.com/hrznWiKB Any help would be greatly appreciated :)
Comment
Your answer
Follow this Question
Related Questions
raycast2d problem enemies,Raycast2D problem 0 Answers
My 2d enemy is infinitley jumping 1 Answer
Enemy AI ignores the distance from the player 0 Answers
Boss ai help EoW 0 Answers
How to fix enemy's rotation (2D) 0 Answers