void Awake() { //animator = GetComponent<Animator>(); //healthBarObject = GetComponent<GameObject>(); healthBar = healthBarObject.GetComponent <healthBar>(); //laser = GetComponent<GameObject>(); laserRB = laser.GetComponent <Rigidbody2D>(); laserPoint = GameObject.Find("LaserPoint"); laserScript = laser.GetComponent <laser>(); player = GameObject.Find("PlayerPivot"); healthBarObject.SetActive(false); anubisRoar = GetComponent <AudioSource>(); RageMetre = GameObject.Find("RageMeter"); rageMetreScript = RageMetre.GetComponent <rageMeterScript>(); areaAttack.SetActive(false); laserEye.SetActive(false); areaAttacks.SetActive(false); //areaAttack = GetComponent<GameObject>(); //laserScript.enabled = false; health = RageMetre.transform.localScale.x; RageMetre.SetActive(false); }
void Awake() { rageMeter = GameObject.Find("RageMeter"); rageMeterScript = rageMeter.GetComponent <rageMeterScript>(); player = GameObject.Find("PlayerPivot"); playerScript = player.GetComponent <playerController>(); animator = GetComponent <Animator>(); }
void Awake() { rageMeter = GameObject.Find("RageMeter"); rageMeterScript = rageMeter.GetComponent <rageMeterScript>(); player = GameObject.Find("PlayerPivot"); playerScript = player.GetComponent <playerController>(); animator = GetComponent <Animator>(); target = GameObject.FindGameObjectWithTag("Player").transform; }
void Awake() { rageMeter = GameObject.Find("RageMeter"); rageMeterScript = rageMeter.GetComponent <rageMeterScript>(); animator = GetComponent <Animator>(); }