private void Play(BossPhaseState state) { if (state.ToIndex() >= _bgms.Count) { Debug.LogError("phase exceed bgm exceed."); state = BossHelper.MakeBossPhaseFromIndex(_bgms.Count - 1); } _player.clip = _bgms[state.ToIndex()]; _player.Play(); }
public BossPhaseCondition(JsonData data) : base(ConditionType.BossPhase) { _phase = (BossPhaseState) (int) data["Phase"]; }