Exemplo n.º 1
0
 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;
 }
Exemplo n.º 2
0
 private void PlayerAbilities_OnSpellCrafted(object sender, PlayerAbilities.OnSpellCraftedArgs e)
 {
     spellGameObjects[(int)e.recipe.slot] = e.recipe;
     spellCooldowns[(int)e.recipe.slot]   = e.recipe.cooldown;
 }