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); } } }