|
im making a game with a lvl system but i dont know why my exp script does not interac with the lvl script. My exp script is combine with a damage receiver script so when the target die it give a certan amount of exp but when i kill the target the exp does not add to the "accumulatedExperiencePoints" of the lvl script.I tried many thing but it doesn't seem to work.how can i make it work? here is my lvl script
and here is my exp script:
(comments are locked)
|
|
i added a update function but the exp is stil not adding to the "accumulatedExperiencePoints" and i tcheck is the name of the object was correct and it was :S what shoud i do?? here is the full exp script: never mind i found why it did not add the exp. its because my script was deliting the object befor the exp could be added so i deleted the Destroy(gameObject); in the function detonate and thanx for your help :D
Oct 22 '10 at 07:21 PM
vincent dupuis morneau
(comments are locked)
|

You need an Update function in your exp script.
or
There's no object named Player with a "Leveing_Script" attached.