- Home /
Question by
benny401 · Jun 08, 2015 at 10:09 AM ·
unity 5scripting problem
Scripting error, no definition or an extension method.
Wasent sure what was suited best for the title and im still fairly new too coding but heres my error,
On line 38 on one of my scripts the type "LifeManager" does not contain a definition for "TakeLife' and no extension method 'TakeLife' of type 'LifeManager' could be found (are you missing a using directive or an assembly reference?)
basically i'm just trying to remove one life when a player dies but ive done something wrong in my code along the way.
here are the scripts that might be causing it
LifeManager: http://pastebin.com/p5FkdWKu
HealthManager: http://pastebin.com/Wx2CmudG
Thanks for the help.
Comment
Best Answer
Answer by Bonfire-Boy · Jun 08, 2015 at 10:42 AM
You have a function LifeManager.Takelife() but no LifeManager.TakeLife().
It's case-sensitive.