Exemplo n.º 1
0
 protected void BaseUnitInitialization()
 {
     orderableObject = GetComponent <OrderableObject>();
     fractionMember  = GetComponent <FractionMember>();
     agent           = GetComponent <NavMeshAgent>();
     damageSystem    = GetComponent <DamageSystem>();
     damageSystem.SetMaxHp(MaxHp);
     damageSystem.SetHpToMax();
 }
Exemplo n.º 2
0
 protected void BaseBuildingInitialization()
 {
     damageSystem.SetMaxHp(MaxHp);
     if (isStartWithFullHp)
     {
         damageSystem.Heal(MaxHp);
     }
     CreationOutput = this.transform.position;
 }