public void TriggerClearAbility() { if (inventoryUI == null) { if ((inventoryUI = FindObjectOfType <InventoryUI>()) == null) { return; } } inventoryUI.ClearAbilities(); }