Пример #1
0
        private void DrawArrowToSelf(SpriteBatch sb)
        {
            Vector2 toMe = RagdollToMe();

            Vector2 toMeNorm = toMe;

            toMeNorm.Normalize();


            Color c = Color.Green;

            if (State == ObjectiveState.Running)
            {
                c = Color.Orange;
            }

            SpriteHelper.DrawArrow(sb, ragdollPixel + toMeNorm * 100, ragdollPixel + toMeNorm * 200, c);
        }