void Point(DollDanceSequence.Move move) { // Point, look, play a sound animator.Play(move.ToString(), POINT_LAYER); //animator.Play(move.ToString(), EYE_LAYER); playEyeAnimation(move.ToString()); pointSource.pitch = pitchMap[move]; pointSource.PlayOneShot(pointClip); }
public void Perform(DollDanceSequence.Move move) { // Doll does a move animator.SetTrigger(move.ToString()); dollSource.Stop(); dollSource.pitch = pitchMap[move]; dollSource.PlayOneShot(dollClip); }