public IA(CharacterStatPresset statPresset, HealthPresset healthPresset)
     : base(statPresset, healthPresset)
 {
     //Instantiate the values of the IA
     agent       = GetComponentInParent <NavMeshAgent>();
     agent.speed = CurrentSpeed * CurrentSpeedBonus;
 }
Example #2
0
 public Character(CharacterStatPresset statPresset, HealthPresset healthPresset)
     : base(statPresset, healthPresset)
 {
     CurrentSpeedBonus = 1;
 }
 public Killable(CharacterStatPresset statPresset, HealthPresset healthPresset)
 {
     //Extract the values of the stats and Health
     basicStatPresset   = statPresset;
     basicHealthPresset = healthPresset;
 }
 private void Start()
 {
     tempStatPresset   = statPresset;
     tempHealthPresset = healthPresset;
 }