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); }
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; }
void OnEnable() { _barStarted = false; _misslesFiredSinceEnabled = 0; _clipController.SetActive(true); }
private void startPlaying() { _audioSource.clip = _startGameSound; _audioSource.Play(); _baseLine.SetActive(true); }
void OnEnable() { _count = 6; GetComponent <BeatListener>().wait0 = true; _clipController.SetActive(true); }
void OnEnable() { count = 1; measureStarted = false; clipController.SetActive(true); }