/***************************************************** * DECREASE TRANSLATION AMPLIFICATION * * INFO: Permet de réduire la valeur qui amplifie * la translation d'un objet et mettre a jour * le label. Non concus pour la manipulation libre. * L'amplification doit avoir un minimum de 1. * *****************************************************/ public void DecreaseTranslationAmplification() { TextMeshPro amplifyLabel = GameObject.FindWithTag("AmplifyTranslationLabel").GetComponent <TextMeshPro>(); if (amplifyTranslation > 1f && amplifyLabel != null) { amplifyTranslation -= incrTranslation; amplifyLabel.text = amplifyTranslation.ToString(); TranslationController.GetInstance().SetTranslationAmplification(amplifyTranslation); } }
/***************************************************** * RESET OBJECT POSITION * * INFO: Remet l'objet a sa position initiale. * *****************************************************/ public void ResetObjectPosition() { TranslationController.GetInstance().ResetObjectPosition(); }