From http://www.donovankeith.com/2016/05/making-objects-float-up-down-in-unity/
by admin · May 6, 2016 Ever wanted to make an object float up and down while spinning in Unity? Well, I’ve written a script for that.
End Result of Script
Usage
- Select an object in your Unity project.
- Add Component > New Script
- Name: Floater
- Language: C-Sharp
- Edit the script
- Copy & Paste the code below into your script editor.
- Save the script.
- Tweak settings to your heart’s content