Example #1
0
    // Start is called before the first frame update
    void Start()
    {
        GameObject mainObject = GameObject.Find("MusicPlayManager");

        musicPlayData  = GameObject.Find("MusicPlayManager").GetComponent <MusicPlayData>();
        musicPlayPower = mainObject.GetComponent <MusicPlayPower>();
        calcFps        = GameObject.Find("FpsObject").GetComponent <CalcFps>();
        m = mainObject.GetComponent <MusicPlayManager>();

        v          = m.getMusicObjVec();
        isAutoPlay = m.isAutoPlay;
        GOOD_LINE  = m.GOOD_LINE;
        GREAT_LINE = m.GREAT_LINE;
        ui         = GameObject.Find("UiArea").GetComponent <UiController>();
    }
Example #2
0
 private void init()
 {
     Application.targetFrameRate = FRAME_RATE;
     bmsConverter     = this.GetComponent <BmsConverter>();
     musicPlay        = this.GetComponent <MusicPlay>();
     musicPlayPower   = this.GetComponent <MusicPlayPower>();
     musicPlayData    = this.GetComponent <MusicPlayData>();
     musicPlayAvator  = this.GetComponent <MusicPlayAvator>();
     animationManager = GameObject.Find("AnimationManager").GetComponent <AnimationManager>();
     //MUSIC_FOLDER_PATH = config.getFolderPath();
     MUSIC_OBJ_Y = getMusicObjectY();
     setMusicData(dictMusicData);
     frameCount = 0;
     if (dictMusicData != null)
     {
         this.music_folder = dictMusicData["music_folder"];
         this.music_bms    = dictMusicData["music_bms"];
     }
     //もしisAvatorがtrueなら表示させる
     if (isAvator)
     {
         isAvator = musicPlayAvator.changeAvatorMode();
     }
 }