public override void Update() { UpdatePosition(); if (!shootCooldown.Ready()) { return; } shootCooldown.Reset(); Vector2 vel = Player.ToPlayer(data.pos.val); vel.x += MathUtil.RandFloat(Program.Rand, -0.1, 0.1); vel /= 5; Projectile proj = new Projectile(data.pos.val, vel, projlife); if (!Terrain.IsColliding(proj)) { EntityManager.AddEntity(proj); } }