Animator.GetLayerIndex

Switch to Manual
public int GetLayerIndex (string layerName);