// Use this for initialization void Start() { baseForm = this.transform.rotation; basePos = this.transform.position; if (mocapScale <= 0) { mocapScale = this.transform.localScale[1]; } for (int i = 0; i < names.Length; i++) { string n = names[i]; bodys[n] = getBodyObject(n); sensors[n] = new SSens(); } loadSetting(); if (follow == null) { loadMoCap(); } else { sensors = follow.getSensors(); } loadFlag = 1; }
// Use this for initialization void Start() { baseForm = this.transform.rotation; basePos= this.transform.position; if(mocapScale<=0){ mocapScale = this.transform.localScale[1]; } for(int i=0;i<names.Length;i++){ string n = names[i]; bodys[n]=getBodyObject(n); sensors[n]=new SSens(); } loadSetting(); if(follow==null){ loadMoCap(); } else{ sensors = follow.getSensors(); } loadFlag=1; }