Beispiel #1
0
 public void RLoad()
 {
     _LightWriter = GameObject.Find("LightWriter").GetComponent <LightWriter>();
     _LightWriter.WriteCSV("Assets/Resources/Light/Color.txt", "500,500,500,500");
     SceneManager.LoadScene("Choose Music");
     //Debug.Log("aaa");
 }
Beispiel #2
0
 // Update is called once per frame
 void Update()
 {
     if (transform.position.z > 2 || transform.position.z < -2)
     {
         _LightWriter = GameObject.Find("LightWriter").GetComponent <LightWriter>();
         _LightWriter.WriteCSV("Assets/Resources/Light/Color.txt", "500,500,500,500");
         Debug.Log("mmm");
         SceneManager.LoadScene("Choose Music");
     }
 }
Beispiel #3
0
 //ゲームを取り込んだり初期設定を行う
 void Start()
 {
     _audioSource  = GameObject.Find("GameMusic").GetComponent <AudioSource>();
     _slider       = GameObject.Find("HP").GetComponent <Slider>();
     _slideryellow = GameObject.Find("HPYellow").GetComponent <Slider>();
     _sliderred    = GameObject.Find("HPRed").GetComponent <Slider>();
     _LightWriter  = GameObject.Find("LightWriter").GetComponent <LightWriter>();
     _slider.value = 0;
     _timing       = new float[1024];
     _lineNum      = new int[1024];
     _score        = 0;
     maxcombo      = 0;
     _LightWriter.WriteCSV("Assets/Resources/Light/Color.txt", "500,500,500,500");
     LoadCSV();
 }