Changed oldColor to underscore in hook in RandomColor

This commit is contained in:
MrGadget1024 2020-11-22 21:47:17 -05:00
parent c84b317a7b
commit e0fb14feea
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;