/// <summary> /// 教学 第一步 /// </summary> private void Tutorial_1() { IsTeaching = false; TextGroup.transform.GetChild(1).GetComponent <Text>().text = ""; baize.DOFillAmount(1, 1.0f).OnComplete(() => { TextGroup.DOFillAlpha(1, 0.5f).OnComplete(() => { ContentText.DOText(Tips[0], Time_daziji[0]).OnComplete(() => { TimeTool.Instance.AddDelayed(TimeDownType.NoUnityTimeLineImpact, DelayTime, () => { BG_Close(); Teach1_Anima_Open(); IsTeaching = true; }); }); }); }); }
/// <summary> /// 教学 第二步 /// </summary> public void Tutorial_2() { Teach1_Anima_Hide(); IsTeaching = false; BGCanvasGroup.blocksRaycasts = true; TextGroup.transform.GetChild(1).GetComponent <Text>().text = ""; BGCanvasGroup.DOFillAlpha(1, 0.5f).OnComplete(() => { TextGroup.DOFillAlpha(1, 0.5f).OnComplete(() => { ContentText.DOText(Tips[1], Time_daziji[1]).OnComplete(() => { TimeTool.Instance.AddDelayed(TimeDownType.NoUnityTimeLineImpact, DelayTime, () => { baize.enabled = false; BG_Close(); Teach2.DOFillAlpha(1, 0.5f).OnComplete(() => { IsTeaching = true; }); }); }); }); }); }
private void BG_Close() { TextGroup.DOFillAlpha(0, 0.5f); BGCanvasGroup.DOFillAlpha(0, 0.5f); BGCanvasGroup.blocksRaycasts = false; }