Beispiel #1
0
        public void AddData()
        {
            _effcnfs.Clear();

            List <List <string> > contents =
                CnfHelper.GetContext(Application.dataPath + "/../Report/Effect_Report.csv");

            int length = contents.Count;

            for (int i = 0; i < length; i++)
            {
                CheckEffectReportCnf info = new CheckEffectReportCnf();
                info.SetInfo(contents[i]);
                _effcnfs.Add(info);
            }

            _shows.Clear();
            length = _effcnfs.Count;
            for (int i = 0; i < length; i++)
            {
                _shows.Add(_effcnfs[i]);
            }
        }
Beispiel #2
0
        // 选择某一条具体的规则
        private void OnRuleSelected(object select, int col)
        {
            CheckEffectReportCnf info = select as CheckEffectReportCnf;

            if (info == null)
            {
                return;
            }

            List <System.Object> objs = new List <object>();

            for (int i = 0; i < info._texs.Count; i++)
            {
                TmpStringInfo tmp = new TmpStringInfo();
                tmp._param1 = info._texs[i];
                tmp._param2 = info._texMems[i].ToString();
                objs.Add(tmp);
            }
            _effectTexTablePanel.RefreshData(objs);

            UnityEngine.Object obj = AssetDatabase.LoadAssetAtPath(info._assetPath, typeof(UnityEngine.Object));
            EditorGUIUtility.PingObject(obj);
            Selection.activeObject = obj;
        }