BBGamelib.CCDirector.DrawQuad C# (CSharp) Method

DrawQuad() private method

private DrawQuad ( Rect position, Color color ) : void
position UnityEngine.Rect
color Color
return void
		void DrawQuad(Rect position, Color color) {
			Texture2D texture = new Texture2D(1, 1);
			texture.SetPixel(0,0,color);
			texture.Apply();
			GUI.skin.box.normal.background = texture;
			GUI.Box(position, GUIContent.none);
		}
		#endregion