示例#1
0
 // Start is called before the first frame update
 void Start()
 {
     balloon        = GameObject.Find("BirdTarget");
     particleSystem = GetComponent <ParticleSystem>();
     renderers      = GetComponentsInChildren <MeshRenderer>();
     rigidbody      = GetComponent <Rigidbody>();
     flightSystem   = GameObject.FindWithTag("Balloon").GetComponent <BalloonFlightSystem>();
     audioSource    = GameObject.Find("balloon").GetComponent <AudioSource>();
     pointTracker   = GameObject.FindWithTag("Balloon").GetComponent <PointTracker>();
 }
 // Start is called before the first frame update
 void Start()
 {
     balloon     = GetComponent <BalloonFlightSystem>();
     ps          = GameObject.Find("Fire Parts").GetComponent <ParticleSystem>();
     audioSource = ps.gameObject.GetComponent <AudioSource>();
 }