ゲーム終了時stay
This commit is contained in:
parent
6ac8b330e6
commit
266e6f7c9a
|
|
@ -270,6 +270,7 @@ namespace MyGame.Scenes.MiniGame.Scripts
|
|||
case GameState.Play:
|
||||
break;
|
||||
case GameState.Success:
|
||||
player.Stay();
|
||||
resultManager.ShowResult(scoreCount.Value, placeList, stageData);
|
||||
break;
|
||||
case GameState.Failure:
|
||||
|
|
|
|||
|
|
@ -28,8 +28,12 @@ namespace MyGame.Scenes.MiniGame.Scripts
|
|||
animator = GetComponent<Animator>();
|
||||
}
|
||||
|
||||
public void Stay()
|
||||
public void Stay(bool force = false)
|
||||
{
|
||||
if (!force && isPreHit)
|
||||
{
|
||||
return;
|
||||
}
|
||||
animator?.Play("Brother_pink_main_stay");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue