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