TeamBasedColors
This will update the set Text and Image colors to match based on what this clients team currently is. The colors are decided based on what you set in the inspector. You must have a Team component somewhere in the hierarchy for this component to work properly, it doesn't matter if its in the parents or children.
Public Virtual Methods
| Method | Description |
|---|---|
| void TeamChanged(string newTeamName) | Calls UpdateColors, great for being called by UnityEvents that require strings inputs |
| void UpdateColors() | Updates all Text and Image components that have been applied to the updateImages and updateTexts fields to change their colors to be whatever the local clients team is. |