private void fireRocket() { Vector2?aimDirection = getAimDirection(); if (!aimDirection.HasValue) { return; } Vector2 aimDirectionResolved = aimDirection.Value; if (rocketLauncher != null) { bool used = rocketLauncher.Use(aimDirectionResolved); if (used) { camera.GetComponent <CameraControl>().Shake(0.30f, 15, 500f); float lockSkillsTime = playerConfig.getHasGoodRockets() ? 0.25f : 1f; LockSkills(lockSkillsTime); } } }