void Start() { instance = this; _skeletonRenderer = GetComponent <SkeletonRenderer>(); // GetComponent<SkeletonRenderer>().skeleton.FindSlot("hand1_red").Attachment = null; // GetComponent<SkeletonRenderer>().skeleton.FindSlot("hand1_red").SetToSetupPose(); for (int i = 0; i < _skeletonRenderer.skeleton.slots.Count; i++) { if (_skeletonRenderer.skeleton.Slots.Items[i].ToString().Contains("red")) { redSet.Add(_skeletonRenderer.skeleton.Slots.Items[i].ToString()); } else if (_skeletonRenderer.skeleton.Slots.Items[i].ToString().Contains("green")) { greenSet.Add(_skeletonRenderer.skeleton.Slots.Items[i].ToString()); } else if (_skeletonRenderer.skeleton.Slots.Items[i].ToString().Contains("blue")) { blueSet.Add(_skeletonRenderer.skeleton.Slots.Items[i].ToString()); } else if (_skeletonRenderer.skeleton.Slots.Items[i].ToString().Contains("white")) { whiteSet.Add(_skeletonRenderer.skeleton.Slots.Items[i].ToString()); } } ChangeSet(); }
void Start() { instance = this; _skeletonRenderer = GetComponent<SkeletonRenderer>(); // GetComponent<SkeletonRenderer>().skeleton.FindSlot("hand1_red").Attachment = null; // GetComponent<SkeletonRenderer>().skeleton.FindSlot("hand1_red").SetToSetupPose(); for(int i = 0; i < _skeletonRenderer.skeleton.slots.Count; i++) { if(_skeletonRenderer.skeleton.Slots.Items[i].ToString().Contains("red")) { redSet.Add(_skeletonRenderer.skeleton.Slots.Items[i].ToString()); } else if(_skeletonRenderer.skeleton.Slots.Items[i].ToString().Contains("green")) { greenSet.Add(_skeletonRenderer.skeleton.Slots.Items[i].ToString()); } else if(_skeletonRenderer.skeleton.Slots.Items[i].ToString().Contains("blue")) { blueSet.Add(_skeletonRenderer.skeleton.Slots.Items[i].ToString()); } else if(_skeletonRenderer.skeleton.Slots.Items[i].ToString().Contains("white")) { whiteSet.Add(_skeletonRenderer.skeleton.Slots.Items[i].ToString()); } } ChangeSet(); }