|
Ive created an Object that should act as a tower in a spacewars game, it attacks, looks at the target and aims properly and stuff, but it doesn't recieve damage for a reason, I've attached the following script on the object, whats really happening is, that the function OnCollisionEnter isnt even functioning, because the nothing is appearing on the Debug Log: private int health=20;
} Thanks for help.
(comments are locked)
|
|
It is called OnCollisionEnter
(comments are locked)
|
|
Have you tried any of the Unity tutorials? I know at least one of them has a damage script you can check out.
(comments are locked)
|
|
ya and your point is? or ur just a troll? That functions in unity are case sensitive, and that could be a reason that your code is not working.
Nov 03 '10 at 09:03 PM
Atnas1010
Atnas is right, check your console to see it, one or more errors should appear.
Nov 03 '10 at 10:30 PM
Bravini
(comments are locked)
|
