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

            if (renderer != null)
            {
                renderer.material.color = color;
            }
        }