This repository has been archived on 2026-04-30. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files

16 lines
328 B
C#

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);
}
}