public void OnHit(DisplayTrackType displayTrackType, JudgmentType judgmentType) { if (!mTrackDrumMap.ContainsKey(displayTrackType)) { return; } var animation = mTrackDrumMap[displayTrackType]; animation.gameObject.SetActive(true); if (animation.isPlaying) { animation.Stop(); } animation.Play(judgmentType.ToString()); }