private void Start() { characterPresenter = gameObject.GetComponent <CharacterPresenter>(); myStats = characterPresenter.MyStats; characterPresenter.AddStatusEffect(this); characterPresenter.MyStats.OnChangedCurrentHealth += CheckCurrentHealth; }
private void Start() { characterPresenter = gameObject.GetComponent <CharacterPresenter>(); characterPresenter.AddStatusEffect(this); characterPresenter.MyStats.attackSpeed.AddModifier(attackSpeedModifier); characterPresenter.MyStats.criticalChance.AddModifier(criticalChanceModifier); characterPresenter.MyStats.criticalMultiplier.AddModifier(criticalPowerModifier); characterPresenter.MyStats.OnChangedCurrentHealth += SetAllAttackModifiersValue; }
private void Start() { characterPresenter = gameObject.GetComponent <CharacterPresenter>(); characterPresenter.AddStatusEffect(this); }