コード例 #1
0
        IEnumerator Start()
        {
            while (KinectManager.Instance == null || !KinectManager.Instance.IsInitialized())
            {
                yield return(null);
            }

            Instance      = this;
            kinectManager = KinectManager.Instance;

            /*
             * for (int i = 0; i < bHandRight.Length; i++)
             * {
             *      bHandRight[i].GetComponentInChildren<MeshRenderer>().material.SetColor("_BaseColor", tabColor[i]);
             *      bHandLeft[i].GetComponentInChildren<MeshRenderer>().material.SetColor("_BaseColor", tabColor[i]);
             * }*/

            listTabs.Add(tab1);
            listTabs.Add(tab2);
            listTabs.Add(tab3);
            listTabs.Add(tab4);
            listTabs.Add(tab5);
            listTabs.Add(tab6);
            listTabs.Add(tab7);
            listTabs.Add(tab8);
            listTabs.Add(tab9);
            listTabs.Add(tab10);

            InitTableau();
        }
コード例 #2
0
 void OnTriggerEnter(Collider other)
 {
     ManagerCraie.HandTrigger(other.gameObject);
 }