protected override void OnShowEntitySuccess(object sender, GameEventArgs e) { ShowEntitySuccessEventArgs ne = (ShowEntitySuccessEventArgs)e; if (ne.EntityLogicType == typeof(OutPutBox)) { outPutBox = (OutPutBox)ne.Entity.Logic; outPutBox.SetInfo(curStageInfo.OutPut, mainFormId); } else if (ne.EntityLogicType == typeof(OrderExcuer)) { var temp = (OrderExcuer)ne.Entity.Logic; excuer = temp; excuer.mainFormId = mainFormId; } else if (ne.EntityLogicType == typeof(Box)) { InputBoxs.Add((Box)ne.Entity.Logic); if (InputBoxs.Count == inputSplits.Length) { float posx = ne.Entity.gameObject.transform.position.x; Log.Info("size = " + inputSplits.Length); for (int i = 0; i < InputBoxs.Count; i++) { InputBoxs[i].boxPram = inputSplits[i]; InputBoxs[i].gameObject.transform.position = new Vector3(posx, i, -1); } } } }
private void Init(OutPutBox ouputbox) { form = (MainForm)GameEntry.UI.GetUIForm(mainFormId).Logic; holder = GameObject.Find("OrderHolder").GetComponent <OrderHolder>(); outPutBox = ouputbox; pointInput = GameObject.Find("PointInput").transform.position; pointOutput = GameObject.Find("PointOutput").transform.position; }
public void StartExcute(OutPutBox ouputbox) { if (form == null) { Init(ouputbox); } status = nowStatus.READY; transform.position = new Vector3(0, 0, 0); DOTween.Kill(tweenId); nowLine = 0; SafeUpdateLog("开始执行", InfoTypes.Info); }