16 lines
350 B
C#
16 lines
350 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
public class EntityEffect : MonoBehaviour
|
|
{
|
|
public float DelayDestroyTime = 1f;
|
|
|
|
private void Awake()
|
|
{
|
|
Invoke(nameof(DelayDestroy), DelayDestroyTime);
|
|
}
|
|
private void DelayDestroy()
|
|
{
|
|
GameObject.Destroy(this.gameObject);
|
|
}
|
|
} |