Ejemplo n.º 1
0
 /// <summary>
 /// Initialize The Effect
 /// </summary>
 /// <param name="Type">Line Type</param>
 /// <param name="Size">Image Size</param>
 /// <param name="direction">Effect Direction</param>
 public void Initialize(Enumeration.ELine Type, float Size, Enumeration.EDirection direction)
 {
     if (Type == Chimera.Graphics.Enumeration.ELine.Horizontal)
     {
         hiding.Initialize(new Vector2(graphics.GraphicsDevice.Viewport.Width, Size), direction);
     }
     else if (Type == Chimera.Graphics.Enumeration.ELine.Vertical)
     {
         hiding.Initialize(new Vector2(Size, graphics.GraphicsDevice.Viewport.Height), direction);
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initialize The Effect
 /// </summary>
 /// <param name="Size">Image Size</param>
 /// <param name="direction">Effect Direction</param>
 public void Initialize(float Size, Enumeration.EDirection direction)
 {
     hiding.Initialize(new Vector2(Size, Size), direction);
 }