Como desativar todos os outros componentes no GameObject in Unity
foreach (MonoBehaviour component in GetComponents<MonoBehaviour>())
{
if (component != this) component.enabled = false;
}
foreach (MonoBehaviour component in GetComponents<MonoBehaviour>())
{
if (component != this) component.enabled = false;
}