Пример #1
0
 public virtual void Initialize(UnitBrain brain, NonControllableUnit unit, Unit enemyHero)
 {
     this.unit      = unit;
     this.enemyHero = enemyHero;
     unitAttack     = unit.unitAttack;
     unitMovement   = unit.GetComponent <UnitMovement>();
 }
Пример #2
0
 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);
 }
Пример #3
0
        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();
        }
Пример #4
0
 public override void Initialize(UnitBrain brainRef, NonControllableUnit unit, Unit enemyHero)
 {
     base.Initialize(brainRef, unit, enemyHero);
     enemyUnits.Add(enemyHero);
 }
Пример #5
0
 public override void Initialize(UnitBrain brainRef, NonControllableUnit unit, Unit enemyHero)
 {
 }
Пример #6
0
 public override void Initialize(UnitBrain brain, NonControllableUnit unit, Unit enemyHero)
 {
     base.Initialize(brain, unit, enemyHero);
     unit.GetComponent <UnitHealth>().alive = true;
 }