video thumbnail 16:19
Unity Create a Game Series (E06. enemy attacks)

2015-09-22

[public] 52.0K views, 790 likes, 10.0 dislikes audio only

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


Game development tutorials. Support my videos on Patreon
https://www.patreon.com/SebastianLague
The Attack Distance Threshold
/youtube/video/njqRlH3Hj3Q?t=718.56897
Attack Threshold Distance
/youtube/video/njqRlH3Hj3Q?t=766.23999