カゴ表示切り替え調整

This commit is contained in:
kimura 2022-07-05 12:10:55 +09:00
parent e706504871
commit 2595c5421c
1 changed files with 6 additions and 3 deletions

View File

@ -18,6 +18,9 @@ namespace MyGame.Scenes.MiniGame.Scripts
[SerializeField] private GameObject level1;
[SerializeField] private GameObject level2;
[SerializeField] private GameObject level3;
[SerializeField] private int level1Value = 9;
[SerializeField] private int level2Value = 18;
[SerializeField] private int level3Value = 27;
[SerializeField] private GameObject hitEffectPrefab;
private Animator animator;
private bool isJump;
@ -152,9 +155,9 @@ namespace MyGame.Scenes.MiniGame.Scripts
private void UpdateCount()
{
level1.SetActive(count >= 5);
level2.SetActive(count >= 10);
level3.SetActive(count >= 15);
level1.SetActive(count >= level1Value);
level2.SetActive(count >= level2Value);
level3.SetActive(count >= level3Value);
}
public void ResetCount()