|
Hi everyone! I have been messing around with unity for quite a while now and a got a snag in my script for a mario galaxy type faux gravity. Script :
I keep getting an error saying---- The best overload for the method 'FauxGravityAttractor.Attract(FauxGravityBody)' is not compatible with the argument list '(FauxGravityBody2)'. OR---- Fauxgravity Attractor Does Not Denote A Valid Type. could someone help me with this snag? Thanks!
(comments are locked)
|
|
It looks like you renamed your script from 'FauxGravityBody' to 'FauxGravtiyBody2'. Either rename it back or change the definition of the Attract function to take a FauxGravityBody2. Thanks a lot! It Worked! I appreciate your help!
Nov 30 '10 at 01:52 PM
Sean_The_Ripper
Glad to hear it worked, please mark this as the correct answer to close this question.
Nov 30 '10 at 11:24 PM
_Petroz
(comments are locked)
|
