This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| Unity's default theme includes colour and other elements going beyond mere basic formats | |
| that are required if you want to use, say, ListViews or columns. Unfortunately, due to the specificity rule, | |
| these will take precendence over your own styles. e.g. the .unity-button:hover:enabled will squash your | |
| definition of .myButton:hover because it is considered "more specific". | |
| This USS is a "reset" USS that clears those settings. You can simply include it as another stylesheet in your theme, | |
| preferably the first (so it is overwritten by your own styles) | |
| This is still INCOMPLETE. I add to it whenever I find something else that messes up my styling. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| using Pinwheel.Poseidon; | |
| /* | |
| Simple Buoyancy Script for Poseidon water system | |
| to adapt to any other water system, just edit the GetWaterHeight() method to whatever your water system uses to get the wave/water height of a given point | |
| the container should sit at the center of the ship for best effect | |
| */ |