Inheritance: NetworkBehaviour
 private static void SetVis(GameObject go, bool vis)
 {
     foreach (Renderer component in go.GetComponents <Renderer>())
     {
         component.enabled = vis;
     }
     for (int index = 0; index < go.transform.childCount; ++index)
     {
         NetworkProximityChecker.SetVis(go.transform.GetChild(index).gameObject, vis);
     }
 }
 private static void SetVis(GameObject go, bool vis)
 {
     foreach (Renderer renderer in go.GetComponents <Renderer>())
     {
         renderer.enabled = vis;
     }
     for (int j = 0; j < go.transform.childCount; j++)
     {
         Transform child = go.transform.GetChild(j);
         NetworkProximityChecker.SetVis(child.gameObject, vis);
     }
 }
示例#3
0
 private static void SetVis(GameObject go, bool vis)
 {
     Renderer[] components = go.GetComponents <Renderer>();
     for (int i = 0; i < components.Length; i++)
     {
         Renderer renderer = components[i];
         renderer.enabled = vis;
     }
     for (int j = 0; j < go.transform.childCount; j++)
     {
         Transform child = go.transform.GetChild(j);
         NetworkProximityChecker.SetVis(child.gameObject, vis);
     }
 }
示例#4
0
 public override void OnSetLocalVisibility(bool vis)
 {
     NetworkProximityChecker.SetVis(base.gameObject, vis);
 }