Exemple #1
0
 private void Update()
 {
     if (this.m_isValid)
     {
         bool isValid = this.m_isValid;
         this.m_isValid = ((this.m_particleSys != null) && !this.m_particleSys.isStopped) && this.m_particleSys.IsAlive();
         if ((!this.m_isValid && isValid) && (this.m_delegatePlayEnd != null))
         {
             this.m_delegatePlayEnd(base.gameObject);
             this.m_delegatePlayEnd = null;
         }
     }
 }
Exemple #2
0
 public void OnRecycle()
 {
     this.m_isValid         = false;
     this.m_delegatePlayEnd = null;
 }