Exemplo n.º 1
0
        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();
            }
        }
Exemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     bmlreq    = FindObjectOfType <BMLRequests> ();
     idCounter = 0;
 }