//UI表示終了処理をする public void MenuEndFunc(int mode) { //すでに閉じてます if (!showing || busy) { return; } //0=Normal, 1=Left, 2=Right AudioMan.PlayCloseSound(); MenuEnd = true; busy = true; TweenCallback callback = () => { EnableManager.Disable(); //処理を無効化 EOVRO.show = false; //オーバーレイ無効 SideMenu.up = true; //左右の場合はここで閉じる //fpsを下げる ResoMan.LowFPS(); MenuResetFunc(); }; var seq = DOTween.Sequence(); if (mode == 1) { //Left seq.Append( DOTweenModuleUI.DOAnchorPosX(canvasrect, -260, canvasdutation) ); } else if (mode == 2) { //Rgiht seq.Append( DOTweenModuleUI.DOAnchorPosX(canvasrect, +260, canvasdutation) ); } else { //通常 SideMenu.up = true; //格納してから seq.AppendInterval(0.3f); //Wait side menu seq.Append( DOTweenModuleUI.DOAnchorPosY(canvasrect, 150, canvasdutation) ); } seq.AppendInterval(0.5f); //Wait seq.AppendCallback(callback); seq.Append( DOTweenModuleUI.DOAnchorPosY(canvasrect, 0, canvasdutation) //スワイプアウトのあともとに戻す ); seq.Play(); }