Exemple #1
0
        private IEnumerator AsyncOnLoadData()
        {
            yield return(new WaitForSeconds(0));

            if (this.State == EnumObjectState.Loading)
            {
                this.OnLoadData();
                this.State = EnumObjectState.Ready;
            }
        }
Exemple #2
0
 protected virtual void OnAwake()
 {
     this.State = EnumObjectState.Loading;
     //播放音乐
     this.OnPlayOpenUIAudio();
 }
Exemple #3
0
 public void Release()
 {
     this.State = EnumObjectState.Closing;
     GameObject.Destroy(CacheGameObject);
     OnRelease();
 }
Exemple #4
0
 void Awake()
 {
     this.State = EnumObjectState.Initial;
     OnAwake();
 }
Exemple #5
0
 protected virtual void SetUI(params object[] uiParams)
 {
     this.State = EnumObjectState.Loading;
 }