BladeLight.cs 294 B

12345678910111213141516
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. public class BladeLight : MonoBehaviour
  5. {
  6. float time;
  7. private void Update()
  8. {
  9. time += Time.deltaTime;
  10. if (time >= 1)
  11. {
  12. gameObject.SetActive(false);
  13. }
  14. }
  15. }