Exemple #1
0
 // Use this for initialization
 void Start()
 {
     pa           = this.GetComponent <PlaneAudio>();
     set          = this.GetComponent <Set>();
     shootpoint   = transform.Find("ShootPoint").gameObject;
     plane        = this.GetComponent <Plane>();
     item         = 0;
     current_time = 0f;
 }
Exemple #2
0
 // Use this for initialization
 void Start()
 {
     pa           = this.GetComponent <PlaneAudio>();
     set          = this.GetComponent <Set>();
     more         = this.transform.Find("morePlane").gameObject;
     prepos       = new Vector3(0f, 0f, 0f);
     preprepos    = new Vector3(0f, 0f, 0f);
     ring_count   = 0;
     service      = controller.GetComponent <LeapServiceProvider>();
     current_time = 0f;
 }
Exemple #3
0
        // Use this for initialization
        void Start()
        {
            accel_timeout = 3f;
            obst_timeout  = 1.5f;
            timeElapsed   = 0f;


            rg          = this.GetComponent <Rigidbody>();
            plane       = this.GetComponent <Plane>();
            rg.velocity = new Vector3(0f, 0f, Velocity);
            set         = this.GetComponent <Set>();
            pa          = this.GetComponent <PlaneAudio>();

            fire = transform.Find("Fire").gameObject;

            wing  = transform.Find("morePlane/WingEffect").gameObject;
            wing2 = transform.Find("morePlane/WingEffect2").gameObject;

            wing.GetComponent <ParticleSystem>().Stop();
            wing2.GetComponent <ParticleSystem>().Stop();
        }