void Start() { _startTime = Time.time + 4f; playerName = (player == playerEnum.player01 ? "player01" : "player02"); audio = GameObject.Find("GameManager").GetComponent<AudioManager>() as AudioManager; spellPool = GameObject.Find("GameManager").GetComponent<SpellManager>() as SpellManager; if(!spellPool) { throw new Exception("Spell Manager is missing"); } spellOneCD = spellPool.GetCooldown(spellOne); spellTwoCD = spellPool.GetCooldown(spellTwo); spawn = transform.FindChild("Spawn").GetComponent<Spawn>(); if (!spawn) { throw new Exception("Spawn component missing"); } }