/// <summary> /// 按下按钮 /// </summary> /// <param name="ms"></param> /// <param name="tf"></param> /// <param name="etl"></param> private void DownButton(MoveState ms, Transform tf, DownUpEvent etl) { if (_isMoving) { return; } _isMoving = true; _moveState = ms; ButtonEffect.Scale(tf, delegate { etl.enabled = true; Moving(); }); }
/// <summary> /// 按下按钮 /// </summary> /// <param name="ms"></param> /// <param name="tf"></param> /// <param name="etl"></param> private void DownButton(MoveState ms, Transform tf, DownUpEvent etl) { if (_isMoving || _canMoving == false) { return; } _isMoving = true; _moveState = ms; ButtonEffect.Scale(tf, Moving, 1.4f); }