2021-09-07 22:20:19 +08:00
|
|
|
using System;
|
|
|
|
using System.Collections;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
public class BoomLight : MonoBehaviour
|
|
|
|
{
|
2021-09-09 00:59:27 +08:00
|
|
|
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()
|
|
|
|
{
|
2021-09-09 00:59:27 +08:00
|
|
|
Destroy(m_light);
|
2021-09-07 22:20:19 +08:00
|
|
|
}
|
|
|
|
}
|