private void OnDestroy() { AtavismEventSystem.UnregisterEvent("PLACE_CLAIM_OBJECT", this); AtavismEventSystem.UnregisterEvent("CLAIM_OBJECT_CLICKED", this); AtavismEventSystem.UnregisterEvent("START_BUILD_CLAIM_OBJECT", this); AtavismEventSystem.UnregisterEvent("CLAIM_CHANGED", this); }
void OnDestroy() { if (node != null) { node.RemoveObjectPropertyChangeHandler("title", LevelHandler); node.RemoveObjectPropertyChangeHandler("level", LevelHandler); node.RemoveObjectPropertyChangeHandler("reaction", TargetTypeHandler); node.RemoveObjectPropertyChangeHandler("aggressive", TargetTypeHandler); node.RemoveObjectPropertyChangeHandler("adminLevel", AdminLevelHandler); node.RemoveObjectPropertyChangeHandler("questavailable", QuestAvailableHandler); node.RemoveObjectPropertyChangeHandler("questinprogress", QuestInProgressHandler); node.RemoveObjectPropertyChangeHandler("questconcludable", QuestConcludableHandler); node.RemoveObjectPropertyChangeHandler("dialogue_available", DialogueAvailableHandler); node.RemoveObjectPropertyChangeHandler("itemstosell", ItemsToSellHandler); node.RemoveObjectPropertyChangeHandler("nameDisplay", NameDisplayHandler); node.RemoveObjectPropertyChangeHandler("guildName", GuildNameDisplayHandler); node.RemoveObjectPropertyChangeHandler("deadstate", HandleDeadState); node.RemoveObjectPropertyChangeHandler("bankteller", HandleDeadState); } AtavismEventSystem.UnregisterEvent("UPDATE_LANGUAGE", this); //StopCoroutine(chIcon); //StopCoroutine(chTimer); StopAllCoroutines(); }
private void OnDestroy() { AtavismEventSystem.UnregisterEvent("World_Error", this); }
void OnDestroy() { AtavismEventSystem.UnregisterEvent("WORLD_TIME_UPDATE", this); }
void OnDestroy() { AtavismEventSystem.UnregisterEvent("CLAIM_ADDED", this); AtavismEventSystem.UnregisterEvent("CLAIMED_REMOVED", this); AtavismEventSystem.UnregisterEvent("LOGGED_OUT", this); }
private void OnDestroy() { AtavismEventSystem.UnregisterEvent("LOADING_SCENE_START", this); AtavismEventSystem.UnregisterEvent("LOADING_SCENE_END", this); AtavismEventSystem.UnregisterEvent("PLAYER_TELEPORTED", this); }
void OnDestroy() { AtavismEventSystem.UnregisterEvent("LOGIN_RESPONSE", this); AtavismEventSystem.UnregisterEvent("REGISTER_RESPONSE", this); AtavismEventSystem.UnregisterEvent("SETTINGS_LOADED", this); }
void OnDestroy() { AtavismEventSystem.UnregisterEvent("ABILITY_UPDATE", this); AtavismEventSystem.UnregisterEvent("INVENTORY_UPDATE", this); }
void OnDestroy() { AtavismEventSystem.UnregisterEvent("UPDATE_LANGUAGE", this); StopAllCoroutines(); }
private void OnDestroy() { AtavismEventSystem.UnregisterEvent("MOUSE_SENSITIVE", this); }