private void OnDestroy() { if (this.exitingApplication) { return; } Stats stats = this.GetStatsTarget(); if (!stats) { return; } stats.RemoveOnChangeAttr(this.UpdateAttrUI); }