27 lines
433 B
C#
Raw Normal View History

2021-09-07 22:20:19 +08:00
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class BoomLight : MonoBehaviour
{
public GameObject m_light;
2021-09-07 22:20:19 +08:00
// Start is called before the first frame update
void Start()
{
Invoke("DesLight",0.1f);
}
// Update is called once per frame
void Update()
{
}
public void DesLight()
{
Destroy(m_light);
2021-09-07 22:20:19 +08:00
}
}