private void Awake() { mycharacterAnimationsScript = GetComponentInChildren <MyCharacterAnimations>(); if (is_Player) { healthUI = GetComponent <HealthUI>(); } }
private void Awake() { MyCharacterAnimations = GetComponentInChildren <MyCharacterAnimations>(); audioSource = GetComponent <AudioSource>(); if (gameObject.CompareTag(Tags.ENEMY_TAG)) { enemyMovements = GetComponentInParent <EnemyMovements>(); } cameraShake = GameObject.FindWithTag(Tags.MAIN_CAMERA_TAG).GetComponent <CameraShake>(); }
void Awake() { animations = GetComponentInChildren <MyCharacterAnimations>(); }
void Awake() { EnemyAnim = GetComponentInChildren <MyCharacterAnimations>(); myBody = GetComponent <Rigidbody>(); playerTarget = GameObject.FindWithTag(Tags.PLAYER_TAG).transform; }