Esempio n. 1
0
    void OnTriggerExit(Collider other)
    {
        GameObject      victim = other.gameObject;
        ValidBuffTarget valid  = victim.GetComponent <ValidBuffTarget>();

        if (valid != null)
        {
            if (targets.Contains(other))
            {
                targets.Remove(other);
            }
        }
    }
Esempio n. 2
0
    void OnTriggerEnter(Collider other)
    {
        GameObject      victim = other.gameObject;
        ValidBuffTarget valid  = victim.GetComponent <ValidBuffTarget>();

        if (valid != null)
        {
            if (!checkIfInBuilding(victim) && (victim.tag.Equals("Player") || victim.tag.Equals("OwnedNPC")))
            {
                buffsys.slowApplyingSystem(victim, slowDuration, slowDecimal);
            }
        }
    }
Esempio n. 3
0
    void OnTriggerEnter(Collider other)
    {
        GameObject      victim = other.gameObject;
        ValidBuffTarget valid  = victim.GetComponent <ValidBuffTarget>();

        if (valid != null)
        {
            if (!checkIfInBuilding(victim) && (victim.tag.Equals("Player") || victim.tag.Equals("OwnedNPC")))
            {
                buffsys.dmgApplyingSystem(victim, burnDuration, burnTickTime,
                                          burnDamagePerTick, BuffsAndBoons.Effects.Burn);
            }
        }
    }
Esempio n. 4
0
    void OnTriggerEnter(Collider other)
    {
        GameObject      victim = other.gameObject;
        ValidBuffTarget valid  = victim.GetComponent <ValidBuffTarget>();

        if (valid != null)
        {
            buffsys.regenApplyingSystem(victim.gameObject, regenDuration,
                                        regenTickTime, healingPerTick);

            if (!targets.Contains(other))
            {
                targets.Add(other);
            }
        }
    }