Dragonflame
New member
Hi there, is it possible to trigger an animation-event in the GUI? For example: When I finish crafting something, I would like to show a little animation that you succeeded. Is this possible?
/// <summary>
/// Wait for the player to select a quantity.
/// </summary>
/// <returns>The task.</returns>
private void CraftSelectedQuantity()
{
var quantity = m_QuantityPickerPanel.QuantityPicker.Quantity;
if (quantity >= 1) {
var craftResult = m_CraftingProcessor.Craft(m_SelectedRecipe, m_ClientInventory, quantity);
if (craftResult.Success) {
m_SuccessAnimationGameObject.SetActive(true);
}
}
m_RecipePanel.SetQuantity(1);
m_RecipePanel.Refresh();
}