void onClickCell(params object[] orgs) { CLCellLua cell = (CLCellLua)(orgs[0]); object[] ret = call(cell.getLuaFunction("getData")); if (ret != null && ret.Length > 0) { selectedItem = ret[0].ToString(); } CLPanelManager.hideTopPanel(); Utl.doCallback(callback, value, selectedItem); }
public override void OnInspectorGUI() { cell = target as CLCellLua; base.OnInspectorGUI(); if (GUILayout.Button("Reset Atlas & Font")) { if (cell.isNeedResetAtlase) { // CLUIInit.self.init (); CLUIUtl.resetAtlasAndFont(cell.transform, false); // CLUIInit.self.clean (); } } }