public void displayGraphic(Vector2 vector, Color color)
        {
            GraphicType newGraphic = new GraphicType(graphic, vector, color, effects);

            newGraphic.startEffect();

            graphics.Add(newGraphic);
        }
Esempio n. 2
0
 public void addGraphic(GraphicType graphic)
 {
     graphics.Add(graphic);
 }
        public void RemoveGraphic(IScreenObject screenObject)
        {
            GraphicType graphicToRemove = screenObject as GraphicType;

            graphics.Remove(graphicToRemove);
        }