Exemplo n.º 1
0
    private void Splash()
    {
        FlameSplash tmp = GameObject.Instantiate(splashPrefab, target.transform.position, Quaternion.identity);

        tmp.Damage = splashDamage;

        Physics2D.IgnoreCollision(target.GetComponent <Collider2D>(), tmp.GetComponent <Collider2D>());
    }
Exemplo n.º 2
0
 public FlameDebuff(int splashDamage, float tickTime, float duration, FlameSplash splashPrefab, Monster target) : base(target, duration)
 {
     this.splashDamage = splashDamage;
     this.tickTime     = tickTime;
     this.splashPrefab = splashPrefab;
 }