public void LinktoMaster(MasterDistSpawner master)
 {
     if (m_Master != null)
     {
         if (master != null)                   // link to diff master
         {
             if (master != m_Master)
             {
                 m_Master.RemoveChild(this);
                 m_Master = master;
                 m_Master.AddChild(this);
             }
         }
         else                 // unlink from master
         {
             m_Master.RemoveChild(this);
             m_Master = null;
         }
     }
     else if (master != null)
     {
         m_Master = master;
         m_Master.AddChild(this);
     }
 }
		public void LinktoMaster( MasterDistSpawner master )
		{
			if ( m_Master != null )
			{
				if ( master != null ) // link to diff master
				{
					if ( master != m_Master )
					{
						m_Master.RemoveChild( this );
						m_Master = master;
						m_Master.AddChild( this );
					}
				}
				else // unlink from master
				{
					m_Master.RemoveChild( this );
					m_Master = null;
				}
			}
			else if ( master != null )
			{
				m_Master = master;
				m_Master.AddChild( this );
			}
		}