void Awake() { mzTimer = GameObject.Find ("MzTimerLabel").GetComponent<MzTimer>(); mzSoundEffect = GameObject.Find("MzSoundEffect").GetComponent<MzSoundEffect>(); mzAudioListener = GameObject.Find("Player").GetComponent<AudioListener>(); mzReadyClear = GameObject.Find("MzSoundEffect").GetComponent<AudioListener>(); cameraController = GameObject.Find("CameraController").GetComponent<CameraController>(); mzBGM = GameObject.Find ("MzBGM").GetComponent<AudioSource>(); playerRenderer = GameObject.Find ("Player").GetComponent<MeshRenderer> (); }
void Awake() { mzSoundEffect = GameObject.Find("MzSoundEffect").GetComponent<MzSoundEffect>(); mzTimer = GameObject.Find ("MzTimerLabel").GetComponent<MzTimer> (); playerFootSound = GameObject.Find ("Player").GetComponent<FootSound> (); playerSpotlight = GameObject.Find ("PlayerSpotlight").GetComponent<Light> (); }