示例#1
0
 private void CheckForParent()
 {
     if (transform.parent == null)
     {
         idParent = null;
     }
     else
     {
         ObjectIdentifier oi_parent = transform.parent.GetComponent <ObjectIdentifier>();
         if (oi_parent != null)
         {
             if (string.IsNullOrEmpty(oi_parent.id))
             {
                 oi_parent.SetID();
             }
             idParent = oi_parent.id;
         }
     }
 }