private void SpawnObject(ObjectSpawn spawn)
        {
            Enemy e = new Enemy(spawn.objectType, Constants.BehaviourType.Default, (int)position.X, (int)position.Y, player, 0, 0, 0, content);
            e.ChangeVelocity(spawn.spawnVelocity.X, spawn.spawnVelocity.Y);

            e.SetState(Constants.CharacterState.Spawning);

            if (initialScale != 0 && ultimateScale != 0 && scalingSpeed != 0)
            {
                e.SetScaling(initialScale, ultimateScale, scalingSpeed);
            }

            CollisionHandler.AddObject(e);
            gameObjects.Add(e);

            SoundEffectManager.Instance.PlaySpawnSound(position, e.Type);

            if (effect != null)
                VisualEffectManager.Instance.CreateEffect(effect.TextureAsset, this.position, 700);
            if (spawnSound != null)
                SoundEffectManager.Instance.PlaySoundFromPosition(this.position, spawnSound);
        }