Exemplo n.º 1
0
 public void ShowLoadGear(ShowLoadGearEvent e, NotForegroundLoadGearNode loadGear, [JoinAll] Optional <ForegroundActiveLoadGearNode> foregroundActiveGear)
 {
     loadGear.Entity.AddComponent <ActiveGearComponent>();
     if (foregroundActiveGear.IsPresent() && foregroundActiveGear.Get().loadGear.gameObject.activeInHierarchy)
     {
         foregroundActiveGear.Get().loadGear.Animator.SetTrigger("hide");
     }
 }
Exemplo n.º 2
0
        public void ShowLoadGear(ShowLoadGearEvent e, SingleNode <LoadGearComponent> loadGear)
        {
            LoadGearComponent component = loadGear.component;

            component.GearProgressBar.gameObject.SetActive(e.ShowProgress);
            component.GearProgressBar.ProgressValue = 0f;
            component.gameObject.SetActive(true);
        }
Exemplo n.º 3
0
 public void ShowLoadGear(ShowLoadGearEvent e, ForegroundLoadGearNode loadGear)
 {
     loadGear.Entity.AddComponent <ActiveGearComponent>();
     base.ScheduleEvent <ShowScreenForegroundEvent>(loadGear);
 }