Beispiel #1
0
    public void CastSpell(int buttonNumber)
    {
        PC = FindLocalPlayer();
        TargetedSpell targetedSpell = PC.GetComponent <TargetedSpell>();
        GameObject    target        = targetedSpell.target;

        Debug.Log("Caused " + spell[buttonNumber].damage + " to " + target.name);
    }
Beispiel #2
0
 public static void InvokeTargetedSpell(Mobile m, IEntity target, int spellId) =>
 TargetedSpell?.Invoke(m, target, spellId);