void Awake() { rb1 = Body1.GetComponent <Rigidbody>(); rb2 = Body2.GetComponent <Rigidbody>(); rb3 = Body3.GetComponent <Rigidbody>(); rb4 = Body4.GetComponent <Rigidbody>(); rb5 = Body5.GetComponent <Rigidbody>(); rb6 = Body6.GetComponent <Rigidbody>(); }
void setRigibody() { this.rb1 = Body1.GetComponent <Rigidbody>(); this.rb2 = Body2.GetComponent <Rigidbody>(); this.rb3 = Body3.GetComponent <Rigidbody>(); this.rb4 = Body4.GetComponent <Rigidbody>(); this.rb5 = Body5.GetComponent <Rigidbody>(); this.rb6 = Body6.GetComponent <Rigidbody>(); }
void Awake() { rb1 = Body1.GetComponent <Rigidbody>(); rb2 = Body2.GetComponent <Rigidbody>(); rb3 = Body3.GetComponent <Rigidbody>(); rb4 = Body4.GetComponent <Rigidbody>(); rb5 = Body5.GetComponent <Rigidbody>(); rb6 = Body6.GetComponent <Rigidbody>(); GameObject tor = this.chita.transform.GetChild(0).gameObject; torax = tor.GetComponent <Rigidbody>(); testeColisao = this.chita.transform.GetChild(13).gameObject; //chita = GameObject.Find("Chita"); //z = new Animalx (); //a = GameObject.Instantiate (chita); //a.transform.position = new Vector3 (-2.16f,0.16f,-5f); }