public void UseEquipment() { HandleEquipmentRemainingDuration(); if (currentEquipment == null) { return; } //window.set("using thing"), or other instruction related to animation currentEquipment.Use(); }