How can i enable a Gameobject with an animation event?

Hello i need a script to enable a gameobject with an animation event. please help that would be great!

public GameObject Object;

void SetOn() {
Object.SetActive(true);
}

the you call it from the animation event