facing problem adding color field

i wanted to add a colorfield in my game window,

i am able to pick the color but i m not able to select the color, like the color stays the same as it was before… wanted help here…
heres my code

using UnityEditor;
using UnityEngine;
using System.Collections;

public class PlayerGUI : MonoBehaviour {

public Color mColor;

void OnGUI()
{
mColor = EditorGUILayout.ColorField(mColor);
}

}

well nevermind i figured out another alternate option