protected override void Start() { base.Start(); mEnemy = GetComponent <Enemy>(); mTeleport = GetComponent <EnemyTeleport>(); mSimpleMovement = GetComponent <SimpleMovement>(); mSimpleAttack = GetComponent <SimpleAttack>(); mEnemy.SetEnemyAI(this); mKillable.onHit += OnHit; }
private void Start() { mEnemy = GetComponent <Enemy>(); mStatistics = GetComponent <CharacterStatistics>(); mKillable = GetComponent <Killable>(); mTeleport = GetComponent <EnemyTeleport>(); mSimpleMovement = GetComponent <SimpleMovement>(); mSimpleAttack = GetComponent <SimpleAttack>(); mAnimator = GetComponentInChildren <Animator>(); mEnemy.SetEnemyAI(this); Game.instance.hud.bossHealth.gameObject.SetActive(true); Game.instance.hud.bossHealth.SetWithValues(0, mKillable.health, mKillable.health); Game.instance.hud.bossHealth.transform.localScale = Vector3.zero; Game.instance.hud.bossHealth.transform.DOScale(1f, 0.5f); }
protected override void Start() { base.Start(); mEnemy = GetComponent <Enemy>(); mTeleport = GetComponent <EnemyTeleport>(); mSimpleMovement = GetComponent <SimpleMovement>(); mSimpleAttack = GetComponent <SimpleAttack>(); mProjectileThrower = GetComponent <ProjectileThrower>(); mEnemy.SetEnemyAI(this); mKillable.onHit += OnHit; Game.instance.hud.bossHealth.gameObject.SetActive(true); Game.instance.hud.bossHealth.SetWithValues(0, mKillable.health, mKillable.health); Game.instance.hud.bossHealth.transform.localScale = Vector3.zero; Game.instance.hud.bossHealth.transform.DOScale(1f, 0.5f); mMaxTeleports = Random.Range(4, 6); }
public override int Visit(SimpleAttack attack) { return(0); }
public abstract int Visit(SimpleAttack attack);
private void Start() { mSimpleAttack = GetComponent <SimpleAttack>(); mSimpleMovement = GetComponent <SimpleMovement>(); mTeleport = GetComponent <EnemyTeleport>(); }
public override int Visit(SimpleAttack attack) { return(attack.Power); }