示例#1
0
    IEnumerator KillProjectile()
    {
        yield return(new WaitForSeconds(comp.timeOut));

        if (rangedWeapon != null && rangedWeapon.maxAmountOfBulletsAlive)
        {
            rangedWeapon.DecrementBulletsAlive();
        }
        gameObject.SetActive(false);
    }