Blocks are all acting correctly, bomb is acting correctly

This commit is contained in:
2018-04-21 14:41:24 +10:00
parent 0001a875a6
commit ed67e81098
25 changed files with 957 additions and 193 deletions
-12
View File
@@ -1,12 +0,0 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
//shootable
public class IceDamager : DamagerBase {
void OnTriggerEnter2D(Collider2D collider) {
if (collider.gameObject.GetComponent<IceDamager> () == null) { //pass through other instances of self
Destroy (gameObject);
}
}
}