Beispiel #1
0
    public void ConfirmTrack()
    {
        TrackData td = TrackBtns[selectIndex].GetComponent <TrackData>();

        TrackBtns[selectIndex].GetComponent <Button>().Select();
        string[] moveCSV   = readcsv.ReadFile(td.GetMoveCSV());
        string[] attackCSV = readcsv.ReadFile(td.GetAttackCSV());
        // set track audioclip
        // set track move
        // set track attack
        gamemanagement.SetTrack(td.GetTrack());
        gamemanagement.SetMoveCSV(moveCSV);
        gamemanagement.SetAttackCSV(attackCSV);
        trackSelectionController.enterButtonIsClicked = true;


        this.GetComponent <AudioSource>().clip = ac;
        this.GetComponent <AudioSource>().Play();
    }