public virtual void SetLayer(int nLayer) { RootGameObject.SetLayer(nLayer); foreach (var go in GameObjects) { UnityUtil.SetLayerRecursive(go, nLayer); } }
virtual public void SetLayer(int nLayer) { RootGameObject.SetLayer(nLayer); this.SetAllGOLayer(nLayer); }