Example #1
0
    // Update is called once per frame
    void Update()
    {
        if (this.gameObject.transform.position.x < shoop_out_position || this.gameObject.transform.position.z != 0)
        {
            MusicStatic.DisableTrack(tower_id);
            emitter_enabled = false;
            return;
        }
        else
        {
            MusicStatic.EnableTrack(tower_id);
            emitter_enabled = true;
        }

        if (emitter_enabled)
        {
            float long_ryhme = Time.time % 4f;

            if (long_ryhme < Time.deltaTime)
            {
                tower_beat.Stop();
                tower_beat.Play();
                for (int i = 0; i < spawn_track_vector.Length; i++)
                {
                    if (spawn_track_vector[i] != 0)
                    {
                        Invoke("SpawnBullet", i * period);
                    }
                }
            }
        }
    }
Example #2
0
 public void DownloadTrack()
 {
     Debug.Log(MusicStatic.ToDashString());
     Application.OpenURL(base_url + "mix.php?track=" + MusicStatic.ToDashString());
 }