private void CreateMissIndication(PureMissActorInteractionEvent interactionEvent) { // Индикатор промаха выводим над актёром, который совершал действие. // Потому что это он промазал. var actorViewModel = SectorViewModel.ActorViewModels.SingleOrDefault(x => x.Actor == interactionEvent.Actor); if (actorViewModel == null) { return; } CreateNoDamageIndicator(actorViewModel, PureMissIndicatorPrefab); }
private void ProcessPureMissEvent(IActor actor, IActor targetActor, int successToHitRoll, int factToHitRoll) { if (ActorInteractionBus == null) { return; } var damageEvent = new PureMissActorInteractionEvent(actor, targetActor) { SuccessToHitRoll = successToHitRoll, FactToHitRoll = factToHitRoll }; ActorInteractionBus.PushEvent(damageEvent); }