Built out a simple level with some puzzles

This commit is contained in:
2018-04-21 21:46:34 +10:00
parent a8741ccc26
commit 011a1ce0c3
37 changed files with 12006 additions and 93 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ using UnityEngine;
//shootable
public class FireDamager : DamagerBase {
void OnTriggerEnter2D(Collider2D collider) {
if (collider.gameObject.GetComponent<FireDamager> () == null) { //pass through other instances of self
if (collider.gameObject.GetComponent<FireDamager> () == null && collider.gameObject.GetComponent<BlockGap> () == null) { //pass through other instances of self
Destroy (gameObject);
}
}