public void HideLoadGear(HideLoadGearEvent e, NotForegroundActiveLoadGearNode loadGear, [JoinAll] Optional <ForegroundActiveLoadGearNode> foregroundActiveGear)
 {
     loadGear.Entity.RemoveComponent <ActiveGearComponent>();
     if (foregroundActiveGear.IsPresent() && !foregroundActiveGear.Get().loadGear.gameObject.activeInHierarchy)
     {
         foregroundActiveGear.Get().loadGear.Animator.SetTrigger("show");
     }
 }
        public void HideLoadGear(HideLoadGearEvent e, SingleNode <LoadGearComponent> loadGear)
        {
            LoadGearComponent component = loadGear.component;

            if (component.gameObject.activeInHierarchy)
            {
                component.Animator.SetTrigger("hide");
            }
        }
 public void HideLoadGear(HideLoadGearEvent e, ForegroundActiveLoadGearNode loadGear)
 {
     loadGear.Entity.RemoveComponent <ActiveGearComponent>();
     base.ScheduleEvent <HideScreenForegroundEvent>(loadGear);
 }