/*LinkInscription_LinkClicked_1 * Permet d'aler sur la view Inscription*/ private void LinkInscription_LinkClicked_1(object sender, LinkLabelLinkClickedEventArgs e) { Inscription inscrire = new Inscription(); inscrire.Hide(); inscrire.Show(); }
public void TakeItem(Item item) { DropCurrentItem(); currentItem = item; currentItem.SetUsable(animator); currentItem.gameObject.transform.parent = player.armTransform; currentItem.gameObject.transform.localPosition = -currentItem.handleBasis.localPosition; //currentItem.gameObject.transform.localRotation = currentItem.handleBasis.localRotation; currentItem.gameObject.transform.localRotation = Quaternion.identity * new Quaternion(currentItem.handleBasis.localRotation.x, currentItem.handleBasis.localRotation.y, currentItem.handleBasis.localRotation.z, -currentItem.handleBasis.localRotation.w); //currentItem.gameObject.transform.localRotation *= currentItem.handleBasis.localRotation; currentItem.GetComponent <Rigidbody>().isKinematic = true; currentItem.GetComponent <Collider>().enabled = false; Inscription insr = currentItem.GetComponent <Inscription>(); if (insr && insr.IsActive) { insr.Hide(); } }