::Hello,
I’m a beginner, I start the serie initialy to implemement only the enemy system. I thought this system and the others parts was separate, so I skiped some parts, that was my mistake because all the codes are connected with themselves and now I’m trying to fix all the bugs I have. I watched 3 times almost all the videos but I’m still missing some parts. Can you help me please ?
Event Manager
Inside the “Event Manager” on this code :
if(e.cooldown <= 0){
//Select a random player and reset the cooldown
e.data.Activate(allPlayers[Random.Range(0, allPlayers.Length)]);
e.cooldown = e.data.GetSpawnInterval(); <------ here : Where is the GetSpawnInterval ?
}
I have this error : Error CS1061: ‘Event_Manager.Event’ does not contain a definition for ‘GetSpawnInterval’ and no accessible extension method ‘GetSpawnInterval’ accepting a first argument of type ‘Event_Manager.Event’ could be found (are you missing a using directive or an assembly reference?)
On the Spawn_Data I have this function.
For the others, I’ll continue to try to resolve by myself and mybe I’ll go here later If I still can’t find the solution.
Thank you