void OnDestroy()
 {
     endSession();
     connector = null;
 }
 // Use this for initialization
 void Awake()
 {
     DontDestroyOnLoad(this);
     messages  = new ArrayList();
     connector = new GSConnector(serviceUrl, appSecret, this);
 }
 void OnApplicationQuit()
 {
     endSession();
     connector = null;
 }