public static FSprite RectSprite(float fX, float fY, float fW, float fH, Color tCol) { FSprite tSprite = new FSprite("blank"); tSprite.SetDimensions(fX, fY, fW, fH); tSprite.color = tCol; return(tSprite); }
public override void Update() { if (m_tAI != null) { Vector2 tPosition = m_tAI.GetPosition(); SetParentOffset(tPosition.x, tPosition.y, fW, 0.0f); SetPixelOffset(0.0f, 0.0f, 0.0f, GetRect().width); tPlayer.SetPosition(GetRect().x, GetRect().y); tPlayer.SetDimensions(GetRect().width, GetRect().height); } }