void FireAmmunition(IShootable ammu, float speed = DEFAULT_AMMU_SPEED) { Vector3 direction = m_bulletSpawnTransform.up; direction = (direction * speed) + m_rb.velocity; ammu.Fire(m_rb.position, m_rb.rotation, direction); }
void FireAmmunition(IShootable ammu, Vector3 direction, float speed = DEFAULT_AMMU_SPEED) { direction = (direction * speed) + m_rb.velocity; ammu.Fire(m_rb.position, m_rb.rotation, direction); }