public override void Activate(AttackPackage attack, AttackMove move) { base.Activate(attack, move); if (_triggerBox) { _triggerBox.enabled = true; } }
private AttackPackage CreateNewPackage(AttackType type, AttackMove move) { var package = AttackPackage.CreateNewPackage(); package._hitPointDamage.Base = _baseHitPointDamage; package._enduranceDamage.Base = _baseEnduranceDamage; package._attackType = type; package._faction = Faction.Player; package = move.Process(package); return(package); }
AttackPackage(int hashID, float hitPointDamage, float enduranceDamage, float knockback, float chargedPercent, float attackRate, bool triggerGapStun, AttackType attackType, Faction faction, Vector2 fromDirection, string staggerAnimation, string gapStaggerAnimation, AttackMove move) { _hashID = hashID; _hitPointDamage = new ModifiableValue(hitPointDamage); _enduranceDamage = new ModifiableValue(enduranceDamage); _knockback = new ModifiableValue(knockback); _chargedPercent = new ModifiableValue(chargedPercent); _attackRate = attackRate; _triggerGapStagger = triggerGapStun; _faction = faction; _attackType = attackType; _staggerAnimation = staggerAnimation; _gapStaggerAnimation = gapStaggerAnimation; _fromDirection = fromDirection; _move = move; }
public override void Activate(AttackPackage attack, AttackMove move) { base.Activate(attack, move); this.transform.localScale = Vector3.zero; }