public void PlayMVPVoice(bool isPlayVoice) { if (_clsShipModel != null) { if (isPlayVoice) { ShipUtils.PlayMVPVoice(shipModel); } playTween.Play(forward: true); transform.ValueTo(0f, 1f, duration, _iEaseType, delegate(object x) { panel.alpha = Convert.ToSingle(x); }, null); } }
public void PlayMVPVoice(bool isPlayVoice) { if (this._clsShipModel == null) { return; } if (isPlayVoice) { ShipUtils.PlayMVPVoice(this.shipModel); } this.playTween.Play(true); this.transform.ValueTo(0f, 1f, this.duration, this._iEaseType, delegate(object x) { this.panel.alpha = Convert.ToSingle(x); }, null); }
public void Show(bool isPlayVoice, Action callback) { if (shipModel != null) { base.transform.LTMoveLocal(_vTweenTargetPos, 0.5f).setEase(LeanTweenType.easeOutSine).setOnComplete((Action) delegate { if (isPlayVoice) { ShipUtils.PlayMVPVoice(shipModel); } Dlg.Call(ref callback); }); base.transform.LTValue(0f, 1f, 0.5f).setEase(LeanTweenType.easeOutSine).setOnUpdate(delegate(float x) { panel.alpha = x; }); } }
public void Show(bool isPlayVoice, Action callback) { if (this.shipModel == null) { return; } base.get_transform().LTMoveLocal(this._vTweenTargetPos, 0.5f).setEase(LeanTweenType.easeOutSine).setOnComplete(delegate { if (isPlayVoice) { ShipUtils.PlayMVPVoice(this.shipModel); } Dlg.Call(ref callback); }); base.get_transform().LTValue(0f, 1f, 0.5f).setEase(LeanTweenType.easeOutSine).setOnUpdate(delegate(float x) { this.panel.alpha = x; }); }