boom.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Boom : MonoBehaviour
{
// Start is called before the first frame update
public void destroy()
{
Destroy(gameObject);
//控制烟雾触发后消失
}
}
bird.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Bird : MonoBehaviour
{
private bool IsClick;
public float MaxDis;
public Transform LeftPos;
public Transform RightPos;
public LineRenderer LLine;
public LineRenderer RLine;
private Component[] sps,rgs;
private SpringJoint2D sp;
private Rigid