public ViewScript(string _viewName, int Width, int Height) { this.Width = Width; this.Height = Height; log = LoggerFactory.GetInstance().GetLogger(this.GetType()); this.viewName = _viewName; log.Debug("加载UI地址" + URLUtil.GetUIPath(viewName)); AssetLoader.GetInstance().Load(URLUtil.GetUIPath(viewName), info_OnLoadComplete, AssetType.UI); }