Three kinds of bullets are firing, bomb breaks the wall
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class ExplosionDamager : DamagerBase {
|
||||
//simply causes damage and then disappears
|
||||
void Awake() {
|
||||
StartCoroutine (DestroyAfter (0.5f));
|
||||
}
|
||||
|
||||
IEnumerator DestroyAfter(float delay) {
|
||||
yield return new WaitForSeconds (delay);
|
||||
Destroy (gameObject);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user