Fix spawn heights and debug menu enemy spawning
This commit is contained in:
@@ -53,4 +53,11 @@ public class AttackComponent : IAttackComponent
|
||||
_maximumAttack.OnNext(_maximumAttack.Value + raiseAmount);
|
||||
Restore(raiseAmount);
|
||||
}
|
||||
|
||||
public void LowerMaximumAttack(int lowerAmount)
|
||||
{
|
||||
_maximumAttack.OnNext(Mathf.Max(_maximumAttack.Value - lowerAmount, 1));
|
||||
if (_currentAttack.Value > _maximumAttack.Value)
|
||||
_currentAttack.OnNext(_maximumAttack.Value);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user