void Register() { if (bmlRequests == null) { bmlRequests = FindObjectOfType <BMLRequests>(); } rigs = FindObjectsOfType <ManualAnimationRig>(); List <string> names = new List <string>(); for (int r = 0; r < rigs.Length; r++) { names.Add(rigs[r].name); } if (rigs.Length >= selectedRig) { selectedRig = 0; } labels = names.ToArray(); if (rigs.Length > 0) { if (animationRig == null) { animationRig = rigs[selectedRig]; } Populate(); } }
// Use this for initialization void Start() { bmlreq = FindObjectOfType <BMLRequests> (); idCounter = 0; }