mirror of
https://github.com/Dadechin/Unity-WebSocket.git
synced 2025-07-18 11:14:34 +00:00
17 lines
286 B
C#
17 lines
286 B
C#
|
using UnityEngine;
|
|||
|
|
|||
|
namespace FishNet.Example.ColliderRollbacks
|
|||
|
{
|
|||
|
public class DestroyAfterDelay : MonoBehaviour
|
|||
|
{
|
|||
|
[SerializeField]
|
|||
|
private float _delay = 1f;
|
|||
|
|
|||
|
private void Awake()
|
|||
|
{
|
|||
|
Destroy(gameObject, _delay);
|
|||
|
}
|
|||
|
|
|||
|
}
|
|||
|
|
|||
|
}
|