private void Pa_OnSpellCrafted(object sender, PlayerAbilities.OnSpellCraftedArgs e) { spellIcons[(int)e.recipe.slot].gameObject.SetActive(true); spellIcons[(int)e.recipe.slot].sprite = e.recipe.spellbookRecipeIcon; }
private void PlayerAbilities_OnSpellCrafted(object sender, PlayerAbilities.OnSpellCraftedArgs e) { spellGameObjects[(int)e.recipe.slot] = e.recipe; spellCooldowns[(int)e.recipe.slot] = e.recipe.cooldown; }