private void AssignChord() { if (ballardCurrent.Value == -1 || sequenceCurrent.Value == -1 || chordCurrent.Value == -1) { return; } BallardData ballard = null; if (BallardDatabase.Instance.GetBallard(ballardCurrent.Value, out ballard) == false) { return; } SequenceData sequence = null; if (ballard.GetSequence(sequenceCurrent.Value, out sequence) == false) { return; } ChordData chord = null; if (sequence.GetChord(chordCurrent.Value, out chord) == false) { return; } if (chord.clip == null) { Debug.LogError("Chord Clip is null!"); return; } clip.Value = chord.clip; }