Three kinds of bullets are firing, bomb breaks the wall

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