/// <summary> /// 敬请期待 /// </summary> public void Expect() { if (at == null) { at = expect_img.GetComponent <AlphaTween>(); } at.ResetToBeginning(); at.PlayForward(); }
public virtual void Show(float time) { if (alphaTween) { if (time == 0f) { alphaTween.SetAlpha(1f); } else { alphaTween.playbackTime = time; alphaTween.PlayForward(true); } } else if (canvasGroup) { canvasGroup.alpha = 1f; } }
/// <summary> /// 警示 /// </summary> public void Caution(Image _imag, bool Caution) { if (Caution) { if (NumeNUll == null) { NumeNUll = _imag.GetComponent <AlphaTween>(); } NumeNUll.ResetToBeginning(); NumeNUll.PlayForward(); } else { if (Special == null) { Special = _imag.GetComponent <AlphaTween>(); } Special.ResetToBeginning(); Special.PlayForward(); } }