Пример #1
0
 public void TriggerWhenUploadComplete(UploadCompleteDelegate callback)
 {
     if (m_finished && callback != null)
     {
         callback(m_asset);
         m_assetUploadedDelegate = null; // we've used this one
     }
     else
     {
         m_assetUploadedDelegate = callback; // save it for later
     }
 }
Пример #2
0
 public void TriggerWhenUploadComplete(UploadCompleteDelegate callback)
 {
     if (m_finished && callback != null)
     {
         callback(m_asset);
         m_assetUploadedDelegate = null; // we've used this one
     }
     else
     {
         m_assetUploadedDelegate = callback; // save it for later
     }
 }