Ejemplo n.º 1
0
    private void create_tap_circle(notes_system note)
    {
        TapPoint TapPointScript;

        GameObject tap1 = Instantiate(obj, NotesManager.laneStart[note.Lane], Quaternion.identity);

        tap1.gameObject.SetActive(true);
        TapPointScript             = tap1.GetComponent <TapPoint> ();
        TapPointScript.destination = GameObject.Find("tapline" + (note.Lane + 1) + "-des").transform.position;
        TapPointScript.transform.LookAt(Camera.main.transform);
    }
Ejemplo n.º 2
0
    void Update()
    {
//		Debug.Log ("elapsed: " + audio_manager.elapsed_time);
//		Debug.Log ("time: " + notes[notes.Count - 1].Time);
        while (notes.Count > 0 && audio_manager.elapsed_time >= notes[notes.Count - 1].Time)
        {
            notes_system note = notes[notes.Count - 1];
            notes.RemoveAt(notes.Count - 1);
            create_tap_circle(note);

//			Debug.Log (tap_circle_copy);
//			this.start_circle(note);
        }
    }
Ejemplo n.º 3
0
    private static List <notes_system> createRandomTrack(int song_duration, double song_beat)
    {
        List <notes_system> notes = new List <notes_system>();
        double subBeat            = song_beat / 5;

        for (double time = song_beat; time < song_duration; time += subBeat)
        {
            if (Random.value < Settings.difficulty)
            {
                var note = new notes_system(
                    (int)Mathf.Round(Random.value * (NotesManager.laneStart.Length - 1)),
                    "tap",
                    (int)time
                    );
                notes.Add(note);
            }
        }
        notes.Reverse();
        return(notes);
    }