|
it says, that this script already has a definition for HitWeapons what am i doing wrong? please give the answer in C#
(comments are locked)
|
|
I would say the problem is you have a boolean called HitWeapons, and then try to declare a method called HitWeapons as well just give the function a unique name EDIT: sorry didnt work, i get a ton more errors from talking out the void HitWeapon. mainly because i need to establish what a HitWeapon is, since i use it after ray = transform.camera.ScreenPointToRay (new Vector3(Screen.width / 2, Screen.height / 2, 0)); and it is used here: if(!HitWeapons)
Jul 31 '12 at 12:20 PM
djfunkey
you need to rename 1, and every instance where you reference it, rename it there too.. for example does if(!HitWeapons) refer to the boolean, or the function? the compiler doesn't know
Jul 31 '12 at 12:43 PM
Seth Bergman
(comments are locked)
|
