public void AddMapProjectile(MapProjectile projectile, bool addToMap = true) { Entity entity = Entity.CreateInstance(GameState.Instance.EntityManager); entity.GetTransform().Parent = this.Parent.GetTransform(); new ProjectileComponent(entity, projectile); ProjectileEntites.Add(entity); if (addToMap) { _mapInstance.AddMapProjectile(projectile); } }