void Start() { myCam = GetComponent <Camera>(); QuestBar = GameObject.Find("QuestBar").GetComponent <Image>(); QuestBar.gameObject.SetActive(false); sounds = GameObject.Find("QuestNPC").GetComponent <TalkingToPlayer>(); gold = GameObject.Find("Player").GetComponent <ExperienceScript>(); questsInteraction = GameObject.Find("QuestManager").GetComponent <QuestsInteraction>(); }
void Start() { PlayerTrans = GameObject.Find("Player").GetComponent <Transform>(); experience = GameObject.Find("Player").GetComponent <ExperienceScript>(); anim = GetComponent <Animation>(); healthSlider = GetComponentInChildren <Slider>(); healthSlider.maxValue = enemyHealth; healthSlider.value = enemyHealth; PlayerScript = GameObject.Find("Player").GetComponent <PlayerScript>(); audioS = GetComponent <AudioSource>(); killerCounter = GameObject.Find("QuestManager").GetComponent <QuestsInteraction>(); Attack = GameObject.Find("GM").GetComponent <GameMasterScript>(); }