mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
Changed oldColor to underscore in hook in RandomColor
This commit is contained in:
parent
c84b317a7b
commit
e0fb14feea
@ -18,7 +18,7 @@ public override void OnStartServer()
|
|||||||
// Cache it here and destroy it in OnDestroy to prevent a memory leak
|
// Cache it here and destroy it in OnDestroy to prevent a memory leak
|
||||||
Material cachedMaterial;
|
Material cachedMaterial;
|
||||||
|
|
||||||
void SetColor(Color32 oldColor, Color32 newColor)
|
void SetColor(Color32 _, Color32 newColor)
|
||||||
{
|
{
|
||||||
if (cachedMaterial == null) cachedMaterial = GetComponentInChildren<Renderer>().material;
|
if (cachedMaterial == null) cachedMaterial = GetComponentInChildren<Renderer>().material;
|
||||||
cachedMaterial.color = newColor;
|
cachedMaterial.color = newColor;
|
||||||
|
@ -18,7 +18,7 @@ public override void OnStartServer()
|
|||||||
// Cache it here and destroy it in OnDestroy to prevent a memory leak
|
// Cache it here and destroy it in OnDestroy to prevent a memory leak
|
||||||
Material cachedMaterial;
|
Material cachedMaterial;
|
||||||
|
|
||||||
void SetColor(Color32 oldColor, Color32 newColor)
|
void SetColor(Color32 _, Color32 newColor)
|
||||||
{
|
{
|
||||||
if (cachedMaterial == null) cachedMaterial = GetComponentInChildren<Renderer>().material;
|
if (cachedMaterial == null) cachedMaterial = GetComponentInChildren<Renderer>().material;
|
||||||
cachedMaterial.color = newColor;
|
cachedMaterial.color = newColor;
|
||||||
|
Loading…
Reference in New Issue
Block a user