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"); contentBG = (GImage)com.GetChild("contentBG"); accountBg = (GImage)com.GetChild("accountBg"); accountInput = (GTextInput)com.GetChild("accountInput"); passwordBg = (GImage)com.GetChild("passwordBg"); passwordInput = (GTextInput)com.GetChild("passwordInput"); loginButton = FUITitleButton.Create(domain, com.GetChild("loginButton")); content = (GGroup)com.GetChild("content"); } }
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"); enterButton = FUITitleButton.Create(domain, com.GetChild("enterButton")); } }
public override void Dispose() { if (IsDisposed) { return; } base.Dispose(); self.Remove(); self = null; bg = null; enterButton.Dispose(); enterButton = null; }
public override void Dispose() { if (IsDisposed) { return; } base.Dispose(); self.Remove(); self = null; bg = null; contentBG = null; accountBg = null; accountInput = null; passwordBg = null; passwordInput = null; loginButton.Dispose(); loginButton = null; content = null; }