示例#1
0
 public void ExitGameoverCanvas()
 {
     mySeq = DOTween.Sequence();
     mySeq.AppendCallback(() => ToggleGameoverCanvas(false));
     mySeq.Append(Button_Restart.DOMoveX(pivot_right.position.x, Gameover_ExitTime / 2).SetEase(Ease.InExpo));
     mySeq.Insert(0.35f, Button_Home.DOScale(Vector3.zero, Gameover_ExitTime / 2).SetEase(Ease.InExpo));
     mySeq.Insert(0.65f, Button_Store.DOScale(Vector3.zero, Gameover_ExitTime / 2).SetEase(Ease.InExpo));
     mySeq.Append(GameoverCanvas_Deco.DOFade(0f, Gameover_ExitTime));
     mySeq.Insert(0.95f, GameoverCanvas_Interactive.DOFade(0f, Gameover_ExitTime));
 }
示例#2
0
    public void EnterGameoverCanvas()
    {
        mySeq = DOTween.Sequence();

        SFX.instance.Stop_FireClose();
        SFX.instance.Stop_GameMusic();
        SFX.instance.Play_GameoverMusic();

        mySeq.Append(GameoverCanvas_Deco.DOFade(1f, Gameover_EnterTime));
        mySeq.Insert(0f, GameoverCanvas_Interactive.DOFade(1, Gameover_EnterTime));
        mySeq.Append(Button_Home.DOScale(Vector3.one, Gameover_EnterTime / 2).SetEase(Ease.OutBounce));
        mySeq.Insert(0.9f, Button_Store.DOScale(Vector3.one, Gameover_EnterTime / 2).SetEase(Ease.OutBounce));
        mySeq.Append(Button_Restart.DOMoveX(pivot_right.position.x, Gameover_EnterTime / 2).From().SetEase(Ease.OutExpo));
        mySeq.AppendCallback(() => ToggleGameoverCanvas(true));
    }