Example #1
0
        public void Awake(GObject go)
        {
            if (go == null)
            {
                return;
            }

            GObject = go;

            if (string.IsNullOrWhiteSpace(Name))
            {
                Name = Id.ToString();
            }

            self = (GComponent)go;

            self.Add(this);

            var com = go.asCom;

            if (com != null)
            {
                bg          = (GImage)com.GetChild("bg");
                loadingText = (GTextField)com.GetChild("loadingText");
                loadingBar  = FUILoadingProgressBar.Create(com.GetChild("loadingBar"));
            }
        }
Example #2
0
        public override void Dispose()
        {
            if (IsDisposed)
            {
                return;
            }

            base.Dispose();

            self.Remove();
            self        = null;
            bg          = null;
            loadingText = null;
            loadingBar.Dispose();
            loadingBar = null;
        }