void PlayUnit(Puppet u) { if (unitCache.Contains(u.id)) { return; } unitCache.Add(u.id); //float y = u.transform.position.y; //string[] noteArray; PlayInstructs instruct = u.CurrInstruction(); switch (instruct.note) { case ConstFile.Notes.WHOLE: mm.wholeManager.AddInstruct(instruct); break; case ConstFile.Notes.HALF: //Debug.Log("added half"); mm.halfManager.AddInstruct(instruct); break; case ConstFile.Notes.QUARTER: //Debug.Log("added quarter"); mm.quarterManager.AddInstruct(instruct); break; case ConstFile.Notes.EIGHTH: //Debug.Log("added eigth"); mm.eigthManager.AddInstruct(instruct); break; case ConstFile.Notes.SIXTEENTH: mm.sixteenthManager.AddInstruct(instruct); break; } }