public void DrawNumber(Vector2 _Pos, long _Number, float _Width, float _Height) { long[] array = NumberControl.SeparateNum(_Number, this.mEmptyUnit); int num = array.Length; Rect position = new Rect(_Pos.x, _Pos.y, _Width, _Height); for (int i = 0; i < num; i++) { position.x = _Pos.x + (float)i * _Width + (float)i * this.mSpacing - _Width; long num2 = array[i]; Texture2D texture2D = this.mTexNums[(int)(checked ((IntPtr)num2))]; if (texture2D) { GUI.color = this.TintColor; GUI.DrawTexture(position, texture2D); } } }
public static long[] SeparateNum(long _Number) { return(NumberControl.SeparateNum(_Number, -1)); }