弟のパーティクル非表示を改善

This commit is contained in:
kimura 2022-02-14 12:03:45 +09:00
parent f69f39e8cb
commit 7650a49674
1 changed files with 1 additions and 1 deletions

View File

@ -271,7 +271,7 @@ public class BrotherPinkView : SingletonMonoBehaviour<BrotherPinkView>
{ {
animator.speed = active ? 1f : 0f; animator.speed = active ? 1f : 0f;
animator.transform.localScale = active ? Vector3.one : Vector3.zero; animator.transform.localScale = active ? Vector3.one : Vector3.zero;
animator.GetComponentInChildren<ParticleSystem>()?.transform.SetLocalScale(active ? 1f : 0f); animator.GetComponentInChildren<ParticleSystem>(true)?.transform.SetLocalScale(active ? 1f : 0f);
} }
} }
} }