Method OnEnable OnEnable() This function is called when the object is loaded. Declaration public void OnEnable()