ゲーム終了時stay

This commit is contained in:
kimura 2022-06-29 14:50:30 +09:00
parent 6ac8b330e6
commit 266e6f7c9a
2 changed files with 6 additions and 1 deletions

View File

@ -270,6 +270,7 @@ namespace MyGame.Scenes.MiniGame.Scripts
case GameState.Play: case GameState.Play:
break; break;
case GameState.Success: case GameState.Success:
player.Stay();
resultManager.ShowResult(scoreCount.Value, placeList, stageData); resultManager.ShowResult(scoreCount.Value, placeList, stageData);
break; break;
case GameState.Failure: case GameState.Failure:

View File

@ -28,8 +28,12 @@ namespace MyGame.Scenes.MiniGame.Scripts
animator = GetComponent<Animator>(); animator = GetComponent<Animator>();
} }
public void Stay() public void Stay(bool force = false)
{ {
if (!force && isPreHit)
{
return;
}
animator?.Play("Brother_pink_main_stay"); animator?.Play("Brother_pink_main_stay");
} }