Example #1
0
    public IEnumerator ShowExplosion(Vector3 pos, Quaternion rotation, Explodable expl, float delay)
    {
        yield return(new WaitForSeconds(delay));

        if (expl.DoShowIndirectExplosions())
        {
            Instantiate(explosion, pos, rotation);
        }
        // explode it for real
        expl.Explode(this, BarrelExplosionPwr);
    }