Пример #1
0
    //Coroutine that will wait for the lifetime of the object and then reset it's parent to be placed back in the pool
    IEnumerator lifeTimeCoroutine()
    {
        m_particleSystem.Play();
        yield return(new WaitForSeconds(m_lifetime));

        m_bulletParent.ResetExplosionBullet();
    }