mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
RandomColor: comments
This commit is contained in:
parent
31ac5ad5de
commit
1f9faf2044
@ -21,8 +21,8 @@ void SetColor(Color32 _, Color32 newColor)
|
|||||||
|
|
||||||
public override void OnStartServer()
|
public override void OnStartServer()
|
||||||
{
|
{
|
||||||
// Only set the color once. Players may be respawned,
|
// Only set the color once. Players / objects may be unspawned and
|
||||||
// and we don't want to keep changing their colors.
|
// respawned and we don't want to keep changing their colors.
|
||||||
if (color == Color.black)
|
if (color == Color.black)
|
||||||
color = Random.ColorHSV(0f, 1f, 1f, 1f, 0.5f, 1f);
|
color = Random.ColorHSV(0f, 1f, 1f, 1f, 0.5f, 1f);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user