void Start() { _soundContainer = SoundContainer.Instance; _soundSource = _soundContainer.GetComponent <AudioSource>(); _enemyGameManager = EnemyGameManager.Instance; _languageManager = LanguageManager.Instance; _hudCanvas = GameObject.FindWithTag("HUD").GetComponent <PopUpManager>(); _player = GameObject.FindWithTag("Player"); dialogueCallback = DialogueEventCallback; StartCoroutine(Cooldown()); }
private void Awake() { if (Instance == null) { Instance = this; //DontDestroyOnLoad(gameObject); } else { Destroy(gameObject); } player = GameObject.FindGameObjectWithTag("Player"); }