Hello,
I have made level script but im having problems.
In my enemy script there is variable
var playerLevel : LevelSystem;
because when enemy die it gives me points ‘exp’
but in inspector i have to drag and drop something there i know it should be player with attached LevelSystem script, thats what i do but when i attach the player from hierarchy it works perfect, but when i want to attach the prefab of player it doesnt work, it doesnt lvl up it just collect ‘exp’ but doesnt change the lvl and also it stores the ‘exp’ in the player prefab I hope you understand what i mean
because it works perfect when i drag and drop the ‘player’ from hierarchy to the enemy in hierarchy but i cant drag and drop the player from hierarchy into enemy prefab, because im spawning ‘waves’ and for this i need to drag and drop enemy prefab with this level system but i cant
Thanks for helping!!