public override void Update() { float y = Position.Y; if (y < -100) { Engine_Game.Remove(this); } ScaleX = ScaleY = 1 + Math.Abs(0.001f * (600 - Position.Y)); }
private void CollisionWithHereoTest() { Opacity -= 1; if (ScaleX < 0) { ScaleX += 0.01f; Rotation -= 0.02f; } else { ScaleX -= 0.01f; Rotation += 0.03f; } ScaleY -= 0.01f; if (Opacity <= 0) { Engine_Game.Remove(this); } }