Ejemplo n.º 1
0
 public BaseUnitBehaviour( EntityController.GetTarget getTarget, EntityController.Faction faction, UnitViewPresenter myViewPresenter, AnimationController animationController)
 {
     this.myViewPresenter = myViewPresenter;
     this.animationController = animationController;
     myFaction = faction;
     this.navMeshAgent = myViewPresenter.navMeshAgent;
     GetTargetDelegate = getTarget;
     InitStateMachine();
 }
Ejemplo n.º 2
0
 public BaseUnit( 
     UnitCharacteristics characteristics, 
     EntityController.Faction faction, 
     EffectsController effectsController, 
     BaseUnitController.UpdateCharacteristics updateCharacteristics, 
     BaseUnitController.Death updateDeath,
     BaraksModel.SetUpdeteCharacteristicsDelegate setUpdeteCharacteristicsDelegate, Action deleteVisualEffect )
 {
     this.deleteVisualEffect = deleteVisualEffect;
     this.setUpdeteCharacteristicsDelegate = setUpdeteCharacteristicsDelegate;
     setUpdeteCharacteristicsDelegate( UpdateBaseCharacteristics, false );
     updateCharacteristicsDelegate = updateCharacteristics;
     this.updateDeath = updateDeath;
     baseCharacteristics = characteristics;
     currentHp = baseCharacteristics.hp;
     this.faction = faction;
     this.effectsController = effectsController;
     UpdateCharacteristics( baseCharacteristics );
 }