Ejemplo n.º 1
0
    public void OnUIPanelOpen(bool openWithBackground = true)
    {
        TimeManager.SetPauseTime();

        if (!(TacticalMode.IsEnabled() && openedUIPanels == 0) && openWithBackground)
        {
            blocker.SetActive(true);
        }

        openedUIPanels++;
        Debug.Log("UI opened: " + openedUIPanels);
    }
Ejemplo n.º 2
0
    public void OnUIPanelClose()
    {
        openedUIPanels--;

        if (openedUIPanels <= 0)
        {
            TimeManager.SetDefaultTime();
            openedUIPanels = 0;
            blocker.SetActive(false);
        }

        if (openedUIPanels == 1 && TacticalMode.IsEnabled())
        {
            blocker.SetActive(false);
        }

        Debug.Log("UI closed: " + openedUIPanels);
    }
Ejemplo n.º 3
0
        private void Event_SetActiveObject(int celestialObjectId)
        {
            Logger.Info(celestialObjectId);

            activeCelestialObjectId = celestialObjectId;

            if (Mode != TacticalMode.General)
            {
                if (celestialObjectId > 0)
                {
                    Mode = TacticalMode.SelectingSpaceObjectWithActive;
                }
                else
                {
                    Mode = TacticalMode.SelectingSpaceObject;
                }
            }
        }
Ejemplo n.º 4
0
 TacticalMode()
 {
     instance = this;
 }
Ejemplo n.º 5
0
 public void CancelAction()
 {
     Mode = TacticalMode.General;
 }
Ejemplo n.º 6
0
        public void SetAction(int moduleId, int actionId, TacticalMode mode)
        {
            Action = new ModuleAction(moduleId, actionId);

            Mode = mode;
        }