Example #1
0
    private void Splash()
    {
        PosionSplash tmp = GameObject.Instantiate(splashPrefab, target.transform.position, Quaternion.identity);

        tmp.Damage = splashDamage;

        Physics2D.IgnoreCollision(target.GetComponent <Collider2D>(), tmp.GetComponent <Collider2D>());
    }
Example #2
0
 public PoisonDebuff(int splashDamage, float tickTime, PosionSplash splashPrefab, float duration, Monster target) : base(target, duration)
 {
     this.splashDamage = splashDamage;
     this.tickTime     = tickTime;
     this.splashPrefab = splashPrefab;
 }