// Start is called before the first frame update void Start() { player = GameObject.FindWithTag("Player").GetComponent <Player>(); spawn = this.transform; follow = this.GetComponent <AnimalAIControl>(); dragon = this.GetComponent <Animal>(); npc = GameObject.FindWithTag("NPC"); isAttacking = false; currentHP = dragon.life; startHP = currentHP; startHP = dragon.life; HPbar = GetComponentInChildren <Image>(); gameSystem = GameObject.FindWithTag("World").GetComponent <GameSystem>(); difficulty = 1; }
private void Start() { animator = GetComponent <Animator>(); animalAi = GetComponent <AnimalAIControl>(); animator.Play("Sleep"); }