Ejemplo n.º 1
0
        public void UpdateSlowDownStateOnSelfTank(EarlyUpdateEvent evt, VulcanWeaponSlowDownControllerNode vulcanSlowDown, [JoinByTank] SelfActiveTankNode tank)
        {
            Entity weapon = vulcanSlowDown.Entity;

            if (vulcanSlowDown.vulcanWeaponState.State <= 0f)
            {
                this.SwitchVulcanFromSlowDownToIdle(weapon);
            }
        }
Ejemplo n.º 2
0
        public void SwitchFromSlowDownToIdleWhenSelfTankInactive(NodeRemoveEvent evt, SelfActiveTankNode selfActiveTank, [JoinByTank] VulcanWeaponSlowDownControllerNode vulcanSlowDown)
        {
            Entity entity = vulcanSlowDown.Entity;

            entity.RemoveComponent <VulcanSlowDownComponent>();
            entity.AddComponent <VulcanIdleComponent>();
        }