Exemple #1
0
        public override void Play(Action callback)
        {
            this._traShipAnchor.transform.localScaleOne();
            float num = Mathe.Lerp(0f, this._fVoiceLength, 0.5f);

            this._psStar.Play();
            this._psSmoke.Play();
            ShipUtils.PlayBossDeathCryVoice(this._clsShipModel);
            this._uiForeground.alpha = 0f;
            this._traShipAnchor.transform.LTScale(Vector3.one * 0.8f, this._fVoiceLength).setEase(LeanTweenType.linear).setOnComplete(new Action(this.onAnimationFinished));
            this._uiForeground.transform.LTValue(0f, 1f, num).setDelay(num).setEase(LeanTweenType.easeOutSine).setOnUpdate(delegate(float x)
            {
                this._uiForeground.alpha = x;
            });
            base.Play(callback);
        }