예제 #1
0
 void OnEnable()
 {
     _lasorsFiredSinceEnabled            = 0;
     GetComponent <BeatListener>().wait0 = true;
     _direction = (Random.value > 0.5) ? -1f : 1f;
     _rndOffset = Random.Range(-0.5f, 0.5f) * DistanceBetweenLasors();
     _clipController.SetActive(true);
 }
예제 #2
0
    void OnEnable()
    {
        count = initcount;
        clipController.SetActive(true);
        GetComponent <BeatListener>().wait0 = true;


        //set this.position using refPosition and Direction (BeatBox)
        //transform.position = refTransform.position + ref.transform.up * Random.Range(1f,5f);
        //set this.position (Player)
        transform.position = refTransform.position;
        spread             = 5;
    }
예제 #3
0
 void OnEnable()
 {
     _barStarted = false;
     _misslesFiredSinceEnabled = 0;
     _clipController.SetActive(true);
 }
예제 #4
0
 private void startPlaying()
 {
     _audioSource.clip = _startGameSound;
     _audioSource.Play();
     _baseLine.SetActive(true);
 }
예제 #5
0
 void OnEnable()
 {
     _count = 6;
     GetComponent <BeatListener>().wait0 = true;
     _clipController.SetActive(true);
 }
예제 #6
0
 void OnEnable()
 {
     count          = 1;
     measureStarted = false;
     clipController.SetActive(true);
 }