void OnTriggerEnter(Collider other) { if (other.name == "Player") { soundCatchGun.Play(); mainPlayer = other.gameObject.GetComponent <MainPlayer>(); Destroy(gameObject, timeBeforeDestroy); mainPlayer.AddModeAttaque(); } }