public MatchWrestlerSpeedPoolHandler(MatchWrestlerAgilityHandler agilityHandler, MatchWrestler wrestler) { _agilityHandler = agilityHandler; _wrestler = wrestler; _wrestler.UpdateSpeed += HandleUpdateSpeed; _wrestler.EndTurn += HandleEndTurn; }
public void InitializeWrestler(Match matchManager, WrestlerData wrestlerData, InMatchWrestlingTargetDeterminator targetDeterminator, Ring ring, RingPosition startingPosition) { matchManager.UpdateSpeed += HandleSpeedUpdated; _baseWrestlerData = wrestlerData; _targetDeterminator = targetDeterminator; //actions need to be handled by an action handler that gets init here. _playerMovementAction = new PlayerMovementAction(transform, ring); _agilityHandler = new MatchWrestlerAgilityHandler(wrestlerData.Agility); _speedPoolHandler = new MatchWrestlerSpeedPoolHandler(_agilityHandler, this); WrestlerInitialized?.Invoke(this, new MatchWresterGenericEventArgs() { wrestler = this }); }