#pragma warning disable IDE0051 private void Reset() #pragma warning restore IDE0051 { #if UNITY_EDITOR _neutronView = transform.root.GetComponent <NeutronView>(); #endif }
public static void SetColor(NeutronView neutronView, Color color) { Renderer renderer = neutronView.GetComponentInChildren <Renderer>(); if (renderer != null) { renderer.material.color = color; } }