Exemplo n.º 1
0
    public override void onApplication()
    {
        OnFire oldBuff = GetComponent <OnFire>();

        if (oldBuff != null & oldBuff.getLevel() == getLevel())
        {
            oldBuff.setDuration(oldBuff.getDuration() + getDuration());
            Destroy(this);
        }
        base.onApplication();
    }