kNumbers.KListObject.needDrawBarInstantMarkerAt C# (CSharp) 메소드

needDrawBarInstantMarkerAt() 공개 메소드

public needDrawBarInstantMarkerAt ( Rect barRect, float pct ) : void
barRect UnityEngine.Rect
pct float
리턴 void
        public void needDrawBarInstantMarkerAt(Rect barRect, float pct)
        {
            float num = 12f;
            if (barRect.width < 150f)
            {
                num /= 2f;
            }
            Vector2 vector = new Vector2(barRect.x + barRect.width * pct, barRect.y + barRect.height);
            Rect position = new Rect(vector.x - num / 2f, vector.y, num, num);
            GUI.DrawTexture(position, BarInstantMarkerTex);
        }