UpdateScreen() публичный Метод

public UpdateScreen ( ) : void
Результат void
Пример #1
0
    public ArrowAnimationManager arrowManager;                  //Manager for the arrow Animation

    // Use this for initialization
    void Start()
    {
        _reactionEngine   = ReactionEngine.get();
        _devicesDisplayer = DevicesDisplayer.get();

        SetScreen2(false);
        SetScreen3(false);
        SetScreen1(true);


        _devicesDisplayer.UpdateScreen();
        _currentScreen = GameScreen.screen1;

        _timeAtLastFrame = Time.realtimeSinceStartup;

        arrowManager = new ArrowAnimationManager();
    }
Пример #2
0
	public ArrowAnimationManager arrowManager;		//Manager for the arrow Animation
	
	// Use this for initialization
	void Start () {

    _reactionEngine = ReactionEngine.get();
    _devicesDisplayer = DevicesDisplayer.get();

		SetScreen2(false);
		SetScreen3(false);
		SetScreen1(true);
		
		
		_devicesDisplayer.UpdateScreen();
		_currentScreen = GameScreen.screen1;
		
		_timeAtLastFrame = Time.realtimeSinceStartup;

		arrowManager = new ArrowAnimationManager();
	}
Пример #3
0
    public void GoToScreen(GameScreen destination)
    {
        Logger.Log("GUITransitioner::GoToScreen(" + destination + ")");
        if (destination == GameScreen.screen1)
        {
            if (_currentScreen == GameScreen.screen2)
            {
                Logger.Log("2->1", Logger.Level.INFO);
                //2 -> 1
                //set zoom1
                //remove inventory device, deviceID
                //add graphs
                //move devices and potions?
            }
            else if (_currentScreen == GameScreen.screen3)
            {
                Logger.Log("3->1");
                //3 -> 1
                //set zoom1
                //remove craft screen
                //add graphs
                //add potions
                //add devices
                //add life/energy
                //add medium info
                SetScreen3(false);
                SetScreen1(true);
            }
            GameStateController.get().tryUnlockPause();
            ZoomOut();
            _currentScreen = GameScreen.screen1;
        }
        else if (destination == GameScreen.screen2)
        {
            if (animator.isPlaying == true)
            {
                animator.reset();
            }
            if (_currentScreen == GameScreen.screen1)
            {
                Logger.Log("GUITransitioner::GoToScreen 1->2", Logger.Level.INFO);
                //1 -> 2
                //set zoom2
                //add inventory device, deviceID
                //remove graphs
                //move devices and potions?
                GameStateController.get().tryLockPause();
            }
            else if (_currentScreen == GameScreen.screen3)
            {
                Logger.Log("GUITransitioner::GoToScreen 3->2", Logger.Level.INFO);
                //3 -> 2
                //set zoom2
                //remove craft screen
                //add inventory device, deviceID
                //add potions
                //add devices
                //add life/energy
                //add medium info
                SetScreen3(false);
                SetScreen2(true);
            }

            ZoomIn();
            _currentScreen = GameScreen.screen2;
        }
        else if (destination == GameScreen.screen3)
        {
            if (_currentScreen == GameScreen.screen1)
            {
                Logger.Log("GUITransitioner::GoToScreen 1->3", Logger.Level.INFO);
                //1 -> 3
                //remove everything
                //add device inventory, parameters
                //remove graphs
                //move devices and potions?
                SetScreen1(false);
                SetScreen3(true);
                GameStateController.get().tryLockPause();
            }
            else if (_currentScreen == GameScreen.screen2)
            {
                Logger.Log("GUITransitioner::GoToScreen 2->3", Logger.Level.INFO);
                //2 -> 3
                //remove everything
                //add craft screen
                SetScreen2(false);
                SetScreen3(true);
            }
            ZoomIn();
            _currentScreen = GameScreen.screen3;
        }
        else
        {
            Logger.Log("GuiTransitioner::GoToScreen(" + destination + "): error: unmanaged destination", Logger.Level.ERROR);
        }

        _devicesDisplayer.UpdateScreen();
        TooltipManager.displayTooltip();
    }