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