Hello, I’m trying to build an event for my wave system following this tutorial Events - Unity Learn.
But I got this error The name ‘WaveSpawner.OnSpawnEnemy’ does not exist in the current context. I don’t understand because i already did it in another script and it works fine 
Also I’m not sure on how to pass my enemy in parameter of my event OnSpawnEnemy can someone help me pease?
That line needs to go inside a function (probably Start() ).
Oh gosh, how did’nt I saw that… thanks by the way.
PS: For the parameters I found it here http://answers.unity3d.com/questions/383104/passing-the-object-as-event-argument.html
Oh one last thing:
When I try to get the SkeletonBehaviour component on the enemy it says “the type or namespace name does not exist in the namespace (are you missing an assembly reference )”.
But I created it as you can see on the right screen 
EDIT:
Ok I created again the file SkeletonBehaviour.cs and it works maybe it was due to an invisible character, I don’t know.