ゲーム終了時stay
This commit is contained in:
parent
6ac8b330e6
commit
266e6f7c9a
|
|
@ -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:
|
||||||
|
|
|
||||||
|
|
@ -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");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue