first commit
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace OTG.Lab06.Effects
|
||||
{
|
||||
public sealed class SelfDestruct : MonoBehaviour
|
||||
{
|
||||
[SerializeField] private float lifetime = 1f;
|
||||
|
||||
private void Start()
|
||||
{
|
||||
Destroy(gameObject, lifetime);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user