private void WallCollision(Collision2D collisionInfo) { if (tmp_bounceCooldown <= 0) { if (property_bounces > 0) { Vector3 hit = collisionInfo.contacts[0].normal; trajectoryInUse.SendWallCollisionNotification(Mathf.Atan(hit.x / hit.y) * Mathf.Rad2Deg + 90); property_bounces--; tmp_bounceCooldown = BOUNCE_COOLDOWN; } else { RemoveBullet(); } } }