Cute_demon_attacks/meng_yao/Assets/animation/rwcx.cs

26 lines
492 B
C#
Raw Normal View History

2024-10-28 21:58:27 +08:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using DG.Tweening;
public class rwcx : MonoBehaviour
{
// Start is called before the first frame update
public float timer=1.5f;
void Start()
{
transform.DOScale(1.8f,0.8f);
}
// Update is called once per frame
void Update()
{
timer -= Time.deltaTime;
if (timer<0.01f)
{
Destroy(this.gameObject);
}
}
}