private void Awake() { levelManager = FindObjectOfType <LevelManager>(); m_audioManager = GameObject.Find("AudioManager").GetComponent <AudioManager>(); javelinUI = levelManager.javelinUI; rocketsUI = levelManager.rocketsUI; playerController = FindObjectOfType <PlayerController>(); uiBeltInventory = FindObjectOfType <UI_BeltInventory>(); mainCam = Camera.main; }
private void Awake() { m_AudioManager = FindObjectOfType <AudioManager>(); player = FindObjectOfType <PlayerController>(); uiBeltInventory = FindObjectOfType <UI_BeltInventory>(); }