public virtual void Initialize(UnitBrain brain, NonControllableUnit unit, Unit enemyHero) { this.unit = unit; this.enemyHero = enemyHero; unitAttack = unit.unitAttack; unitMovement = unit.GetComponent <UnitMovement>(); }
public void Initialize(Unit enemyHero, UnitStats stats, string tag) { base.Initialize(stats, tag); GetComponent <UnitMovement>().Initialize(currentStats); unitAttack.Initialize(this, tag); brain = ScriptableObject.CreateInstance(brainRef.name) as UnitBrain; brain.Initialize(brainRef, this, enemyHero); }
public override void Initialize(UnitBrain brainRef, NonControllableUnit unit, Unit enemyHero) { base.Initialize(brainRef, unit, enemyHero); currentTarget = enemyHero; bossRef = ((Boss)brainRef); threshold = new int[bossRef.threshold.Length]; for (int i = 0; i < threshold.Length; i++) { threshold[i] = unit.currentStats.health * bossRef.threshold[i] / 100; } thresholdIndex = 0; PhaseChange(); }
public override void Initialize(UnitBrain brainRef, NonControllableUnit unit, Unit enemyHero) { base.Initialize(brainRef, unit, enemyHero); enemyUnits.Add(enemyHero); }
public override void Initialize(UnitBrain brainRef, NonControllableUnit unit, Unit enemyHero) { }
public override void Initialize(UnitBrain brain, NonControllableUnit unit, Unit enemyHero) { base.Initialize(brain, unit, enemyHero); unit.GetComponent <UnitHealth>().alive = true; }