Blocks are all acting correctly, bomb is acting correctly
This commit is contained in:
@@ -1,5 +1,16 @@
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class DamagerBase : MonoBehaviour {
|
||||
public int value = 1;
|
||||
|
||||
void Awake() {
|
||||
StartCoroutine (DestroySelfAfter (30));
|
||||
}
|
||||
|
||||
IEnumerator DestroySelfAfter(float delay) {
|
||||
yield return new WaitForSeconds (delay);
|
||||
Destroy (gameObject);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user