Esempio n. 1
0
    public void returnToSectorButtonClick()
    {
        GameState currGameState = GlobalData.gameStateManager.GetCurrentGameState();

        currGameState.location = null;
        levelScreenSelector.SelectScreen((int)LevelScreenIndices.LOADING);
    }
Esempio n. 2
0
    private void LoadLocation(GameState gameState)
    {
        Debug.Log("Start loading location: " + gameState.location.getName());

        if ((gameState.location.firstPhraseNpcId > 0) && (gameState.location.firstPhraseId > 0) && (!gameState.returnToLocationFlag))
        {
            Debug.Log("Go to dialog screen");
            levelScreenSelector.SelectScreen((int)LevelScreenIndices.LOCATION_DIALOG);
            return;
        }

        gameState.returnToLocationFlag = false;
        levelScreenSelector.SelectScreen((int)LevelScreenIndices.LOCATION);
    }
    private void ReturnToLocation()
    {
        GameState currGameState = GlobalData.gameStateManager.GetCurrentGameState();

        currGameState.returnToLocationFlag = true;
        levelScreenSelector.SelectScreen((int)LevelScreenIndices.LOADING);
    }
Esempio n. 4
0
    private void onLocationClickListener(LocationState locState)
    {
        GameState currGameState = GlobalData.gameStateManager.GetCurrentGameState();

        currGameState.location = locState;
        levelScreenSelector.SelectScreen((int)LevelScreenIndices.LOADING);
    }
Esempio n. 5
0
    private void onSectorClickListener(SectorState sectorState)
    {
        GameState currGameState = GlobalData.gameStateManager.GetCurrentGameState();

        currGameState.sector = sectorState;
        levelScreenSelector.SelectScreen((int)LevelScreenIndices.LOADING);
    }
Esempio n. 6
0
 public void OnLoad()
 {
     Debug.Log("[" + ToString() + "] Loaded");
     screenSelector.ClearScreens();
     screenSelector.SelectScreen((int)StartGameScreenIndices.PLAYER);
     highlightController.ClearHighlights();
     highlightController.HighlightObject(0);
     fillNewGameUI.UpdateUI();
 }
Esempio n. 7
0
 void Start()
 {
     mainScreenSelector.ClearScreens();
     mainScreenSelector.SelectScreen((int)MainScreenIndices.MAIN_MENU);
     LoadGameSettingsFromFile();
 }
Esempio n. 8
0
 void Start()
 {
     levelScreenSelector.ClearScreens();
     levelScreenSelector.SelectScreen((int)LevelScreenIndices.LOADING);
 }
Esempio n. 9
0
 public void newGameButtonClick()
 {
     mainScreenSelector.SelectScreen((int)MainScreenIndices.START_GAME);
 }