using DG.Tweening; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class UI_ReceiveTaskPanel : BasePanel { private string triggerName; public void Init(string triggerName) { GetBigger(); this.triggerName = triggerName; } protected override void OnClick(string btnName) { switch (btnName) { case "Button_Accept": if (GameManager.ProcessMgr.IsRightSubProcessStepsTriggerID(triggerName, true) == 0) { ScoreManager.instance.Check(triggerName, "任务接受完成"); //GameManager.ProcessMgr.CheckSubProcessSteps(GameManager.ProcessMgr.subProcessStepId); GameManager.UIMgr.HidePanel(); } break; } } void GetBigger() { GetControl("Image_Background").rectTransform.DOLocalMove(new Vector3(738, 388, 0), 2.5f); GetControl("Image_Background").transform.DOScale(new Vector3(1, 1, 1), 2.5f); } }