private void CloseMenu() { //move background ReverseBackground(); //hide home Invoke("ReverseHome", 0.3f); //show buttons button3h.PlayReverse(); button3w.PlayReverse(); Invoke("Reverse3", 0.3f); }
/// <summary> /// 关闭卷轴并删除对象 /// </summary> public void Close() { if (ScrollAnim != null) { _del = new EventDelegate(DirectClose); ScrollAnim.AddOnFinished(_del); ScrollAnim.PlayReverse(); } else { DirectClose(); } }