Пример #1
0
 //设置层
 public void UF_SetLayer(int value, bool withChild = false)
 {
     if (withChild)
     {
         GHelper.UF_BatchSetLayer(this.gameObject, value);
     }
     else
     {
         this.gameObject.layer = value;
     }
 }