public void PlayMailstrom(UISortieShip sortieShip, MapEventHappeningModel eventHappeningModel, Action onFinished) { ProdShipRipple component = Util.Instantiate(SortieMapTaskManager.GetPrefabFile().prefabProdShipRipple.gameObject, base.transform.gameObject).GetComponent <ProdShipRipple>(); ProdMailstrom prodMailstrom = ProdMailstrom.Instantiate(((Component)SortieMapTaskManager.GetPrefabFile().prefabProdMaelstrom).GetComponent <ProdMailstrom>(), base.transform, eventHappeningModel); prodMailstrom.PlayMailstrom(sortieShip, component, onFinished); }
public void PlayRipple(Color color) { _prodRipple = Util.Instantiate(SortieMapTaskManager.GetPrefabFile().prefabProdShipRipple.gameObject, base.transform.gameObject).GetComponent <ProdShipRipple>(); _prodRipple.Play(color); SoundUtils.PlaySE(SEFIleInfos.SE_032); Observable.Timer(TimeSpan.FromSeconds(1.5)).Subscribe(delegate { SoundUtils.PlaySE(SEFIleInfos.SE_032); }); }
private void OnFinished(ProdShipRipple ripple) { ripple.Stop(); base.get_transform().LTValue(1f, 0f, 0.5f).setEase(LeanTweenType.linear).setOnUpdate(delegate(float x) { this.mailstrom.alpha = x; }).setOnComplete(delegate { Dlg.Call(ref this._actOnFinished); Object.Destroy(base.get_gameObject()); }); }
private void OnFinished(ProdShipRipple ripple) { ripple.Stop(); base.transform.LTValue(1f, 0f, 0.5f).setEase(LeanTweenType.linear).setOnUpdate(delegate(float x) { mailstrom.alpha = x; }) .setOnComplete((Action) delegate { Dlg.Call(ref _actOnFinished); UnityEngine.Object.Destroy(base.gameObject); }); }
public void PlayMailstrom(UISortieShip sortieShip, ProdShipRipple ripple, Action onFinished) { SoundUtils.PlaySE(SEFIleInfos.SE_033); this.PlayRotation(); this.PlayShipMoveAnim(sortieShip).setOnComplete(delegate { sortieShip.PlayLostMaterial(this._clsEventHappeningModel, null); }); ripple.Play(Color.get_white()); this._actOnFinished = onFinished; Observable.Timer(TimeSpan.FromSeconds(4.5)).Subscribe(delegate(long _) { this.OnFinished(ripple); }); }