コード例 #1
0
 public void push_button()
 {
     if ((time_Manager.Get_time() - first_touch_time) > 0 && (time_Manager.Get_time() - first_touch_time) <= 1.0f)
     {
         Dc_OBJ = GameObject.FindGameObjectWithTag("Dc");
         Destroy(Dc_OBJ);
         UnityEngine.SceneManagement.SceneManager.LoadScene("Select_Music");
     }
     else
     {
         first_touch_time = time_Manager.Get_time();
     }
 }
コード例 #2
0
ファイル: Data_cabinet.cs プロジェクト: akki0716/xbeats_old
    /// <summary>
    /// line1からノートを作るかどうか
    /// </summary>
    /// <returns></returns>
    public bool Is_create_note_line1()
    {
        bool create = false;

        if (BGM_Play.isPlaying == true)
        {
            if (Time.Get_time() >= Note_data_list_line1[create_Index.get_note_data_line1].startTime &&
                Note_data_list_line1[create_Index.get_note_data_line1].made == false)
            {
                create = true;
                //Debug.Log("line1");
            }
        }
        return(create);
    }
コード例 #3
0
ファイル: Judge.cs プロジェクト: akki0716/xbeats_old
    /// <summary>
    /// 見逃し判定チェック
    /// </summary>
    void Through_chack()
    {
        //float add =2.0f;
        float now_time = time.Get_time();

        if (Dc.Note_data_list_line1.Length != 0)
        {
            if (now_time > (Dc.Get_judge_note_parfectTime(1) + poorTime))
            {
                if (Dc.Get_judge_note_is_judged(1) == false)
                {
                    Debug.Log("Through… " + 1);
                    //debug_Disp_Info.disp_judge(5);
                    Dc.Set_judge_note_data_judged(1);
                    ops.DestroyNote(1, Dc.Get_judge_made_note_list_index(1), false, false);
                }
            }
        }
        if (Dc.Note_data_list_line2.Length != 0)
        {
            if (now_time > (Dc.Get_judge_note_parfectTime(2) + poorTime))
            {
                if (Dc.Get_judge_note_is_judged(2) == false)
                {
                    Debug.Log("Through… " + 2);
                    //debug_Disp_Info.disp_judge(5);
                    Dc.Set_judge_note_data_judged(2);
                    ops.DestroyNote(2, Dc.Get_judge_made_note_list_index(2), false, false);
                }
            }
        }
    }
コード例 #4
0
    /// <summary>
    /// デバッグ用ノート情報表示
    /// </summary>
    void Debug_Note_info(int line)
    {
        Note_data note_data = Dc.Get_Create_note_data(line);        //デバッグする時なおして

        //Debug.Log("/*-------------------*/");
        Debug.Log("line " + line);
        Debug.Log("startTime " + note_data.startTime);
        Debug.Log("steamTime " + note_data.steamTime);
        Debug.Log("parfectTime " + note_data.parfectTime);
        Debug.Log("time " + Time.Get_time());
        Debug.Log("生成 ");
        Debug.Log("/*-------------------*/");
    }