GrandLarceny.Line.setLayer C# (CSharp) Method

setLayer() public method

public setLayer ( float a_layer ) : void
a_layer float
return void
        public void setLayer(float a_layer)
        {
            m_layer = a_layer;
        }

Usage Example

Esempio n. 1
0
File: Rope.cs Progetto: theKyuu/GLhf
 public override void loadContent()
 {
     base.loadContent();
     m_startPosition = m_position;
     m_endPosition = new CartesianCoordinate(m_position.getGlobalCartesian() + new Vector2(0, (float)Math.Max(m_lenght, 72)));
     m_endPosition.setParentPositionWithoutMoving(m_startPosition);
     m_line = new Line(m_startPosition, m_endPosition, new Vector2(36, 0), new Vector2(36, 0), Color.Beige, 5, true);
     m_line.setLayer(m_layer);
     m_collisionShape = new CollisionLine(m_startPosition.getGlobalCartesian(), m_endPosition.getGlobalCartesian());
     m_rotationPoint.Y = 0;
     m_rotate = (float)Math.PI / 2;
 }