예제 #1
0
 private void OnReset_System()
 {
     ComDebug.Log(string.Format("OnReset_Prev > {0}", this.GetType()));
     OnReset();
     if (init == false)
     {
         OnInit_System();
         OnRegister();
         OnStart();
     }
 }
예제 #2
0
        public void Process(int id, ComProcEntity entity)
        {
            ProcInfo pi = GetProcInfo(id);

            if (pi == null)
            {
                ComDebug.Log(string.Format("{0}.Process : pi = null", this.GetType().ToString()));
                return;
            }

            Mono.StartCoroutine(entity.OnProcess(pi));
        }
        }                                               // not use this function

        public override IEnumerator OnProcess(ProcInfo pi)
        {
            string form = "";

            if (OnMakeDataForm(ref form))
            {
                OnSuccess(form);
            }
            else
            {
                ComDebug.Log(string.Format("{0}.OnMakeDataForm = false : {1}", this.GetType().ToString(), errorMsg));
                yield break;
            }

            if (string.IsNullOrEmpty(errorMsg) == false)
            {
                ComDebug.Log(string.Format("{0}.OnSuccess = false : {1}", this.GetType().ToString(), errorMsg));
                yield break;
            }

            yield return(null);
        }
예제 #4
0
 public virtual void OnDisable()
 {
     ComDebug.Log(string.Format("OnDisable > {0}", this.GetType()));
 }
예제 #5
0
 private void OnInit_System()
 {
     ComDebug.Log(string.Format("OnInit_Prev > {0}", this.GetType()));
     init = OnInit();
 }
예제 #6
0
 // call by user (optional)
 public virtual void OnReset()
 {
     ComDebug.Log(string.Format("OnReset > {0}", this.GetType()));
 }
예제 #7
0
 public virtual bool OnInit()
 {
     ComDebug.Log(string.Format("OnInit > {0}", this.GetType()));
     return(true);
 }
예제 #8
0
 public virtual void OnWaitForEndOfFrame()
 {
     ComDebug.Log(string.Format("OnWaitForEndOfFrame > {0}", this.GetType()));
 }
예제 #9
0
 public virtual void OnMessage(object arg)
 {
     ComDebug.Log(string.Format("OnMessage > {0}", this.GetType()));
 }
예제 #10
0
 public virtual void OnPause(bool isPause)
 {
     ComDebug.Log(string.Format("OnPause > {0}", this.GetType()));
 }
예제 #11
0
 public void OnDestroy()
 {
     ComDebug.Log(string.Format("OnDestroy > {0}", this.GetType()));
     init = false;
     OnRelease();
 }
예제 #12
0
 public void Log()
 {
     ComDebug.Log("ComUIManager Log");
 }