Ejemplo n.º 1
0
    void Start()
    {
        bool isOk = false;

        if (MUSIC_FOLDER_PATH == null)
        {
            MUSIC_FOLDER_PATH = config.getFolderPath();
        }
        musicSelect = this.GetComponent <MusicSelect>();
        musicSelectSaveFileLoader = this.GetComponent <MusicSelectSaveFileLoader>();
        musicPlayAvator           = this.GetComponent <MusicPlayAvator>();
        musicSelectCache          = this.GetComponent <MusicSelectCache>();
        //もしavatorがtrueならオブジェクトをアクティブにする
        if (isAvator)
        {
            isAvator = musicPlayAvator.changeAvatorMode();
        }

        //全描画
        isOk = allRedraw(MUSIC_FOLDER_PATH);

        //カテゴリーの描画
        redrawCategoryLabel(this.category);

        //スタートフラグtrue
        isReady = isOk;

        //画面表示前にSEが表示されてしまうので、コールチンで遅らせて再生
        StartCoroutine(startSeDelayMethod(2.0f, SE_START));

        Bm98Debug.Instance.Log(MUSIC_FOLDER_PATH);
        Bm98Debug.Instance.Log("folderCount = " + this.folderCount.ToString());
    }
Ejemplo n.º 2
0
    // Use this for initialization
    void Start()
    {
        musicSelect = GameObject.Find("MusicManager").GetComponent <MusicSelect>();

        musicPanel[0].transform.position = panelPoint[2].transform.position;
        musicPanel[1].transform.position = panelPoint[3].transform.position;
        musicPanel[2].transform.position = panelPoint[4].transform.position;
    }
Ejemplo n.º 3
0
    private void Start()
    {
        changeColor = GameObject.Find("TileManager").GetComponent <ChangeColor>();
        finger      = GameObject.Find("InputManager").GetComponent <InputManager>();
        loadMusic   = GameObject.Find("MusicManager").GetComponent <LoadMusicFile>();
        musicSelect = GameObject.Find("MusicManager").GetComponent <MusicSelect>();
        audioSource = GetComponent <AudioSource>();

        for (int i = 0; i < loadMusic.SE_MusicName.Length; i++)
        {
            seList.Add((AudioClip)loadMusic.SE_MusicName[i]);
        }
    }
Ejemplo n.º 4
0
 private void Awake()
 {
     _instance = this;
 }
Ejemplo n.º 5
0
 // Use this for initialization
 void Start()
 {
     loadMusicFile = GameObject.Find("MusicManager").GetComponent <LoadMusicFile>();
     musicSelect   = GameObject.Find("MusicManager").GetComponent <MusicSelect>();
 }
Ejemplo n.º 6
0
 private void Start()
 {
     musicStatus = GameObject.Find("MusicManager").GetComponent <MusicStatus>();
     musicSelect = GameObject.Find("MusicManager").GetComponent <MusicSelect>();
 }