Example #1
0
        public static void On(IsDoneCallback callback, float delay = 0)
        {
            if (null == callback)
            {
                throw new Exception("LOADING_INDICATOR:ON:EXCEPT:BAD_CALLBACK");
            }

            var inst = LoadingIndicator.instance;

            if (!inst)
            {
                return;
            }

            inst.list.AddLast(callback);

            LoadingIndicator.SetActiveWithDelay(true, delay);
        }
Example #2
0
 /**
  * 넘겨진 조건 검사함수를 통해 대기를 결정한후 다음 테스트 진행
  *
  * \parma isDone 작업이 완료 되었는지를 조회하는 콜백 함수.
  * \param timeout 작업의 타임 아웃 시간
  */
 public void WaitsFor(IsDoneCallback isDone, long timeout)
 {
     asyncTasks.Add(new WaitsFor(isDone, timeout));
 }
Example #3
0
 public WaitsFor(IsDoneCallback callback, long timeout)
 {
     this.callback = callback;
     this.timeout  = timeout;
 }
 public void Execute(IsDoneCallback externalCallback)
 {
     callback = externalCallback;
     websocketClient.OnMessage += ParseReponse;
     websocketClient.Send(sentMessage);
 }