protected virtual void OnEnable() { if (!reportTo) { GameObject data = GameObject.Find("DataManager"); if (data != null) { reportTo = (DataHandler)data.GetComponent("DataHandler"); } } if (reportTo) { reportTo.AddReporter(this); } }