/// <summary> /// This function is called when the behaviour becomes disabled() or inactive. /// </summary> private void OnDisable() { QuestHandler.StopListening("GiveReward", GetReward); }