|
http://unifycommunity.com/wiki/index.php?title=Headbobber Does anybody have a camera bob script like the one I posted above, but in C#? I am fairly new and I have no idea how to convert it. I planned on adding onto it with different bobbing speeds for how fast my character is sprinting, but I do not know JavaScript at all. I also need to access variables from another C# script to get my run speed, and I'm not sure if you can do that in JS either...
(comments are locked)
|
|
Looks like this would be a converted version: It's hard to know because it seems undefined variables pop up out of no where. Unfortunately I don't have any projects to test this code for you, but the console doesn't give any compile errors for me. Also, the cSharpConversion V3 is there because c# doesn't like transform.localPosition.y = midpoint; :( Happy coding. This seems pretty much the same as the JS one, I tested it quickly and it works! Thank you.
Jul 12 '12 at 03:11 AM
Josh707
Thank you for accepting my answer. It's no problem really I was just banging my head from my own project not working anyway xD
Jul 12 '12 at 03:13 AM
Muuskii
(comments are locked)
|
