void OnGUI() { if (isSelected) { GUI.Button(new Rect(Screen.width /2, Screen.height / 20, 100, 30), pName); } }