// Start is called before the first frame update void Start() { character = GameObject.FindGameObjectWithTag("Player").GetComponent <CharacterMov>(); target = GameObject.FindGameObjectWithTag("Player").GetComponent <Transform>(); boss = GameObject.FindGameObjectWithTag("Boss").GetComponent <bOSS>(); beg = GameObject.FindGameObjectWithTag("Boss").GetComponent <ghostFollow>(); maxHealth = boss.health; TimeBtwAttack2 = TimeBtwAttack / 2; }
// Start is called before the first frame update void Start() { character = GameObject.FindGameObjectWithTag("Player").GetComponent <CharacterMov>(); boss = GameObject.FindGameObjectWithTag("Boss").GetComponent <bOSS>(); scene = SceneManager.GetActiveScene(); }