Пример #1
0
    private void Shoot()
    {
        GameObject bulletObj = m_bulletPool.Rent(false);
        Bomb       bomb      = bulletObj.GetComponent <Bomb>();

        bulletObj.transform.position = firePoint.transform.position;

        if (bomb != null)
        {
            bomb.CalculateDirection(target);
        }
        bulletObj.SetActive(true);
    }