Exemple #1
0
        public IEnumerator ChangeFinalShip(ShipModel ship, EndingStaffRoll StaffRoll)
        {
            ShipUtils.StopShipVoice();
            Live2DRender.ChangeCharacter(ship, -1, isDamaged: false);
            TweenPos.to   = new Vector3(400f, 0f, 0f);
            TweenPos.from = new Vector3(1200f, 0f, 0f);
            while (!StaffRoll.isFinishRoll)
            {
                yield return(null);
            }
            if (ship.IsMarriage())
            {
                SakuraPar.Play();
            }
            else
            {
                SakuraPar.Stop();
            }
            TweenPos.onFinished.Clear();
            TweenPos.PlayForward();
            TweenPos.duration = 2f;
            Live2DRender.transform.localScale = new Vector3(1.5f, 1.5f, 1.5f);
            Live2DRender.transform.AddLocalPositionY(-120f);
            this.DelayAction(TweenPos.duration, delegate
            {
                this.isShipChanging = false;
            });
            yield return(new WaitForEndOfFrame());

            SingletonMonoBehaviour <Live2DModel> .Instance.ChangeMotion(Live2DModel.MotionType.Secret);

            SingletonMonoBehaviour <Live2DModel> .Instance.Play();
        }
Exemple #2
0
        private IEnumerator InheritTypeSelectExit()
        {
            bool finished = false;

            ShipUtils.StopShipVoice();
            TweenAlpha.Begin(TypeSelect.gameObject, 0.5f, 0f).SetOnFinished(delegate
            {
                finished = true;
            });
            while (!finished)
            {
                yield return(new WaitForEndOfFrame());
            }
        }
Exemple #3
0
 public void StopVoice()
 {
     ShipUtils.StopShipVoice(this._asSource, false, 0.25f);
 }
 public void StopVoice()
 {
     ShipUtils.StopShipVoice();
 }
 public void StopVoice()
 {
     ShipUtils.StopShipVoice(_asSource, isCallOnFinished: false, 0.25f);
 }