Cómo tener referencias a script en Unity

private GameObject player;
player.GetComponent<PlayerMovement>().enabled = false;
Handsome Hornet