This repository has been archived on 2026-04-30. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
2018-04-21 15:03:13 +10:00

13 lines
339 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
//shootable
public class WindDamager : DamagerBase {
void OnTriggerEnter2D(Collider2D collider) {
if (collider.gameObject.GetComponent<WindDamager> () == null && collider.gameObject.GetComponent<BlockGap> () == null) {
Destroy (gameObject);
}
}
}