public override void CommitAction(Battler _user, List <Battler> _targets)
    {
        BattleEffectsSpawner newEffects = GameObject.Instantiate(heldItem.useItem.effect.effects);

        newEffects.Init(BattleManager.main, _user, _targets, heldItem.useItem.effect);
        heldItem.stack--;
    }
예제 #2
0
    public override void CommitAction(Battler _user, List <Battler> _targets)
    {
        BattleEffectsSpawner newEffects = GameObject.Instantiate(effects);

        newEffects.Init(BattleManager.main, _user, _targets, this);
        newEffects.levelMod = skillLevel;
        _user.MP           -= cost;
    }
 protected virtual void Start()
 {
     spawner = GetComponent <BattleEffectsSpawner>();
 }