Exemplo n.º 1
0
 public void AddStreamWeaponHitFeedback(SelfHitEvent e, StreamWeaponWorkingFeedbackControllerNode weapon, [JoinByTank] SelfTankNode tank, [JoinByBattle] BattleNode battle)
 {
     if (this.ValidateSelfHit(e, tank, battle))
     {
         weapon.Entity.AddComponentIfAbsent <StreamHitEnemyFeedbackComponent>();
     }
     else
     {
         weapon.Entity.RemoveComponentIfPresent <StreamHitEnemyFeedbackComponent>();
     }
 }
Exemplo n.º 2
0
 public void RemoveStreamWeaponHitFeedback(SelfHitSkipEvent e, SingleNode <StreamHitEnemyFeedbackComponent> weapon, [JoinSelf] StreamWeaponWorkingFeedbackControllerNode streamWeapon)
 {
     weapon.Entity.RemoveComponent <StreamHitEnemyFeedbackComponent>();
 }