// ----------------------------------------------------------------------------------- // UCE_UI_Lootcrate // ----------------------------------------------------------------------------------- public UCE_UI_Lootcrate() { // assign singleton only once (to work with DontDestroyOnLoad when // using Zones / switching scenes) if (singleton == null) { singleton = this; } }
private void LateUpdate_UCE_Lootcrate() { if (UCE_LootcrateValidation() && UCE_checkTimer()) { UCE_removeTask(); UCE_stopTimer(); UCE_CastbarHide(); Cmd_UCE_finishLootcrateAccess(); if (!UCE_lootcrateUIInstance) { UCE_lootcrateUIInstance = FindObjectOfType <UCE_UI_Lootcrate>(); } UCE_lootcrateUIInstance.Show(); StopAnimation(UCE_selectedLootcrate.playerAnimation); UCE_AddMessage(UCE_selectedLootcrate.successMessage); } }