Method OnEnable OnEnable() This function is called when the object becomes enabled and active. Declaration protected void OnEnable()