private void OnDestroy() { Buffs.AddToDamage(-_profile.data.damageBuff); Buffs.AddToHealth(-_profile.data.healthBuff); Buffs.AddToRange(-_profile.data.rangeBuff); Buffs.AddToFireRate(-_profile.data.fireRateBuff); }
private void Start() { _profile = GetComponent <BuffTowerProfileHandler>(); Buffs.AddToDamage(_profile.data.damageBuff); Buffs.AddToHealth(_profile.data.healthBuff); Buffs.AddToRange(_profile.data.rangeBuff); Buffs.AddToFireRate(_profile.data.fireRateBuff); }