Exemple #1
0
 /// <summary>
 /// 显示下一个需要粘贴的标签
 /// </summary>
 void NextTagFunc()
 {
     if (GlobalMgr.Instance.PrintUIMgr.ItemCount < GlobalMgr.Instance.PrintUIMgr.TagDic.Count)
     {
         _temp = Instantiate(GlobalMgr.Instance.PrintUIMgr.TagDic[GlobalMgr.Instance.PrintUIMgr.ItemCount]);
         _temp.transform.SetParent(granparent);
         _temp.transform.localPosition = new Vector3(-600, 3, 0);
         _temp.transform.localScale    = Vector3.one;
         _tag = _temp.transform.Find("Tag").gameObject;
         _cur = _tag.AddComponent <PasteTag>();
         GlobalMgr.Instance.PrintUIMgr.ItemCount++;
     }
 }
Exemple #2
0
 protected override void Handle(EEvet evt, params object[] args)
 {
     base.Handle(evt, args);
     if (evt == EVT)
     {
         _tempTag = Instantiate(GlobalMgr.Instance.PrintUIMgr.TagDic[0]);
         _tempTag.transform.SetParent(main);
         _tempTag.transform.localPosition = new Vector3(-600, 3, 0);
         _tempTag.transform.localScale    = Vector3.one;
         _tag = _tempTag.transform.Find("Tag").gameObject;
         _cur = _tag.AddComponent <PasteTag>();
         InstTestTube();
     }
 }