Ejemplo n.º 1
0
        public void Update(float dt)
        {
            for (int i = 0; i < Decorations.Count; i++)
            {
                GImage decoration = Decorations[i];
                if (decoration.UserObject.ToString() == "ball")
                {
                    decoration.SetVelocityY(-1f);
                }
                else if (decoration.UserObject.ToString() == "dead")
                {
                    Decorations.RemoveAt(i);
                }

                decoration.Step(dt);
            }
        }