2025-05-18 01:04:31 +08:00

46 lines
897 B
C#

// ***********************************************************************
// Assembly : Game
// Author : Kimch
// Created : 2020-09-02
// Description :
// Last Modified By :
// Last Modified On :
// ***********************************************************************
// <copyright file= "SplashPetBomb" company="Kimch"></copyright>
// <summary></summary>
// ***********************************************************************
using UnityEngine;
namespace G
{
/// <summary>
///
/// </summary>
public class SplashPetBomb : MonoBehaviour
{
private float _delay = 1.7f;
private void Awake()
{
this.gameObject.SetActive(false);
}
private void OnEnable()
{
_delay = 1.7f;
}
private void Update()
{
if (_delay < 0f)
{
this.gameObject.SetActive(false);
}
else
{
_delay -= Time.deltaTime;
}
}
}
}