void InitialiseEarthquake() { AudioSource source = GetComponent <AudioSource>(); source.clip = m_earthQuakeSound; source.Play(); if (camera_shake) { camera_shake.SetShake(5f, 0.7f); } game_hud.SetEventText("EARTHQUAKE!"); }
// Use this for initialization void Start() { event_time = Random.Range(5.0f, 30.0f); camera_shake = FindObjectOfType <CameraShake>(); game_hud = FindObjectOfType <GameHUD>(); game_hud.SetEventText(""); Debug.Log(event_time); }