The first part where I attach the event to the hellaphant animation event won’t play anything however I accidentally added the event to the hellaphants movement animation and it played but only in the middle of the map as if the listener were only where the game started.
The second part about called the emitter to play on the health script doesn’t work and instead gives won’t let enemies take damage at all giving me an error.
NullReferenceException: Object reference not set to an instance of an object CompleteProject.EnemyHealth.TakeDamage (Int32 amount, Vector3 hitPoint) (at Assets/_Complete- Game/Scripts/Enemy/EnemyHealth.cs:57) CompleteProject.PlayerShooting.Shoot () (at Assets/_Complete- Game/Scripts/Player/PlayerShooting.cs:108) CompleteProject.PlayerShooting.Update () (at Assets/_Complete-Game/Scripts/Player/PlayerShooting.cs:47)
This is driving me mad. Please help.