Ejemplo n.º 1
0
 public Dot(Damage damage, float frequency, float totalTime, DamageDelegate effect)
 {
     perDamage      = damage;
     this.frequency = frequency;
     this.totalTime = totalTime;
     doSkillEffect  = effect;
 }
Ejemplo n.º 2
0
    public virtual void Die(Damage killingBlow)
    {
        if (DeathSpawn != null)
        {
            DeathSpawn = Instantiate(DeathSpawn, transform.position, transform.rotation);
        }

        if (OnDie != null)
        {
            OnDie(killingBlow);
        }

        OnDie = null;

        if (!dontDestroyOnDie)
        {
            Destroy(gameObject);
        }
    }