Beispiel #1
0
 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);
     }
 }