// Use this for initialization void Start() { MG_Pin_Arms father = gameObject.transform.parent.GetComponent <MG_Pin_Arms>(); grandfather = father.getFather(); spawnPos = gameObject.transform.position; rb = gameObject.GetComponent <Rigidbody>(); //Evite les rotations de l'objet indésirables. rb.constraints = RigidbodyConstraints.FreezeRotation; rs = us = touch = false; }
// Use this for initialization void Start() { father = gameObject.transform.parent.GetComponent <MG_Pin_Surface>(); mla = rla = mra = rra = false; animSpeed = 300f; }