Exemplo n.º 1
0
    private void changeCamViewToPlayerVew()
    {
        Sokoban    sokoban  = driver.getActiveSokoban();
        Player     player   = sokoban.getPlayer();
        GameObject goPlayer = player.getGameObject();

        Camera.main.transform.position = goPlayer.transform.localPosition - 2 * goPlayer.transform.forward + Vector3.up;
        Camera.main.transform.forward  = goPlayer.transform.forward;
        Camera.main.transform.Rotate(30, 0, 0);
    }
Exemplo n.º 2
0
    private void land()
    {
        Sokoban sokoban = driver.getActiveSokoban();

        driver.setInSpace(false);
        driver.setMainCamToStartTranslate();
        sokoban.getBoard().removeFromBoard();
        sokoban.getBoard().restoreStartSituation();
        sokoban.getPlayer().goToStartTransform();
        setPlayersSpeedZero();
        buttonManager.showSokobanButtons("land");
        hideObject();
    }