Exemplo n.º 1
0
            public IEnumerator Send(Gs2RestSession gs2RestSession, Gs2SessionTaskId gs2SessionTaskId)
            {
                _gs2RestSession   = gs2RestSession;
                _gs2SessionTaskId = gs2SessionTaskId;

                return(Send());
            }
Exemplo n.º 2
0
        protected IEnumerator Send(Gs2RestSession gs2RestSession)
        {
            UnityWebRequest.SetRequestHeader("X-GS2-CLIENT-ID", gs2RestSession.Credential.ClientId);
            UnityWebRequest.SetRequestHeader("Authorization", string.Format("Bearer {0}", gs2RestSession.ProjectToken));

            UnityWebRequest.timeout = Timeout.Seconds;

            return(_gs2RestTask.Send(gs2RestSession, Gs2SessionTaskId));
        }
 public LoginTask(Gs2RestSession gs2RestSession)
 {
     _gs2RestSession = gs2RestSession;
 }