Sebastian Lague | Unity Create a Game Series (E06. enemy attacks) @SebastianLague | Uploaded 8 years ago | Updated 10 hours ago
In episode six we implement enemy attacks.
FAQ:
Q: Game crashes when enemy attacks
A: Make sure that the yield statement in the UpdatePath coroutine is OUTSIDE the currentState == State.Chasing condition.
Source code:
https://github.com/SebLague/Create-a-Game-Source
Follow me on twitter @SebastianLague
Support my videos on Patreon: http://bit.ly/sebPatreon
In episode six we implement enemy attacks.
FAQ:
Q: Game crashes when enemy attacks
A: Make sure that the yield statement in the UpdatePath coroutine is OUTSIDE the currentState == State.Chasing condition.
Source code:
https://github.com/SebLague/Create-a-Game-Source
Follow me on twitter @SebastianLague
Support my videos on Patreon: http://bit.ly/sebPatreon