Ejemplo n.º 1
0
 public void UpdateVulcanShootingOnSelfTank(ApplicationFocusEvent evt, VulcanWeaponShootingControllerNode vulcanShooting, [JoinByTank] SelfActiveTankNode tank)
 {
     if (!evt.IsFocused)
     {
         this.SwitchVulcanFromShootingToSlowDown(vulcanShooting.Entity);
     }
 }
Ejemplo n.º 2
0
 public void UpdateVulcanShootingOnSelfTank(EarlyUpdateEvent evt, VulcanWeaponShootingControllerNode vulcanShooting, [JoinByTank] SelfActiveTankNode tank)
 {
     if (!InputManager.CheckAction(ShotActions.SHOT))
     {
         this.SwitchVulcanFromShootingToSlowDown(vulcanShooting.Entity);
     }
 }
Ejemplo n.º 3
0
        public void SwitchFromShootingToIdleWhenSelfTankInactive(NodeRemoveEvent evt, SelfActiveTankNode selfActiveTank, [JoinByTank] VulcanWeaponShootingControllerNode vulcanShooting)
        {
            Entity entity = vulcanShooting.Entity;

            entity.RemoveComponent <WeaponStreamShootingComponent>();
            entity.AddComponent <VulcanIdleComponent>();
        }
Ejemplo n.º 4
0
 public void StopHitTargetCycleOnSelfTank(NodeRemoveEvent evt, VulcanWeaponShootingControllerNode vulcanShooting)
 {
     vulcanShooting.Entity.RemoveComponent <StreamHitCheckingComponent>();
 }
Ejemplo n.º 5
0
 public void StartHitTargetCycleOnSelfTank(NodeAddedEvent evt, VulcanWeaponShootingControllerNode vulcanShooting)
 {
     vulcanShooting.Entity.AddComponent <StreamHitCheckingComponent>();
 }