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

public LoadNextLevel ( string category ) : void
category string
Результат void
Пример #1
0
 /// <summary>
 /// Destroy the player and take user to the next level
 /// </summary>
 void Win()
 {
     Destroy(gameObject);
     levelManager.LoadNextLevel();
 }
Пример #2
0
 // TODO remove this method once we can actually win!
 void StimulateWin()
 {
     levelManager.LoadNextLevel();
 }
Пример #3
0
 public void PlayerDead()
 {
     leveManger.LoadNextLevel();
 }
Пример #4
0
 // End screen is loaded with Invoke when we get EndGame
 private void LoadEndScreen()
 {
     levelManager.LoadNextLevel();
 }
Пример #5
0
 void OnTriggerEnter2D(Collider2D collider)
 {
     levelManager.LoadNextLevel();
 }
Пример #6
0
 private void simulateWin()
 {
     levelManager.LoadNextLevel();
 }
Пример #7
0
 void SimulateWin()
 {
     brickCount = 0;
     levelmanager.LoadNextLevel();
 }
Пример #8
0
 void SimulateWin()
 {
     print(brickCount);
     brickCount = 0;
     levelManager.LoadNextLevel();
 }
Пример #9
0
    private void ProcessInput()
    {
        // as an easter egg intentionally leaving in the ability to move around the final screen
        if (my_state == STATE.START_SCREEN)
        {
            return;
        }

        bool moveRight = false;
        bool moveLeft  = false;
        bool moveUp    = false;
        bool moveDown  = false;

        bool moving = false;

        if (Input.GetKey(KeyCode.LeftArrow) || Input.GetKey(KeyCode.A))
        {
            moveLeft = true;
            moving   = true;
        }
        else if (Input.GetKey(KeyCode.RightArrow) || Input.GetKey(KeyCode.D))
        {
            moveRight = true;
            moving    = true;
        }

        if (Input.GetKey(KeyCode.UpArrow) || Input.GetKey(KeyCode.W))
        {
            moveUp = true;
            moving = true;
        }
        else if (Input.GetKey(KeyCode.DownArrow) || Input.GetKey(KeyCode.S))
        {
            moveDown = true;
            moving   = true;
        }

        //todo, support number pad?

        if (moving)
        {
            MovePlayer(moveRight, moveLeft, moveUp, moveDown);
        }

        if (Input.GetKeyDown(KeyCode.Space))
        {
            InvokeRepeating("FireColorRay", 0.000001f, rayFiringRate);
        }
        if (Input.GetKeyUp(KeyCode.Space))
        {
            CancelInvoke("FireColorRay");
        }
        if (Debug.isDebugBuild && Input.GetKey(KeyCode.N))
        {
            GameObject levelManagerGO = GameObject.Find("LevelManager");

            if (levelManagerGO)
            {
                LevelManager levelManager = levelManagerGO.GetComponent <LevelManager>();
                levelManager.LoadNextLevel();
            }
        }
    }
Пример #10
0
    public void Continue()
    {
        LevelManager levelManager = GameObject.Find("LevelManager").GetComponent <LevelManager>();

        levelManager.LoadNextLevel(); //Since levelManager doesn't get destroyed when another scene is loaded you can use it here
    }
Пример #11
0
 public virtual void OnArenaExit()
 {
     LevelManager.LoadNextLevel();
 }
Пример #12
0
 void GoToNextLevel()
 {
     lvlManage.LoadNextLevel();
 }
Пример #13
0
 void WonLoadNextLevel()
 {
     levelmanager.LoadNextLevel();
 }
Пример #14
0
 void SimulateWin()
 {
     myLevelManager.LoadNextLevel();
 }
Пример #15
0
 public void NextLevel()
 {
     Time.timeScale = 1;
     levelManager.LoadNextLevel();
     displayManager.DisplayMessage("Next Level");
 }
Пример #16
0
 private void EndGame()
 {
     SaveFinalScore();
     levelManager.LoadNextLevel();
 }
Пример #17
0
 void OnTriggerEnter(Collider other)
 {
     levelManager.LoadNextLevel();
 }
Пример #18
0
 void LevelFinished()
 {
     lvlMan.LoadNextLevel();
 }
Пример #19
0
 void LoadNextLevel()
 {
     l.LoadNextLevel();
 }
Пример #20
0
 void NextLevel()
 {
     LevelManager.LoadNextLevel();
 }
Пример #21
0
 public void stimulateWin()
 {
     levelmanager.LoadNextLevel();
 }
Пример #22
0
 void LoadNextLevel()
 {
     levelWonPopup.SetActive(false);
     levelManager.LoadNextLevel();
 }
Пример #23
0
 public void onNextPress()
 {
     LevelManager.LoadNextLevel();
 }
Пример #24
0
 public void OpenNextLevel()
 {
     LevelManager.LoadNextLevel();
 }
Пример #25
0
 void completeLevel()
 {
     lvl.LoadNextLevel();
 }
Пример #26
0
 private void LoadNextlevel()
 {
     levelManager.LoadNextLevel();
 }
Пример #27
0
 void SimulateWin()
 {
     levelManger.LoadNextLevel();
 }
Пример #28
0
 void LoadNextLevel()
 {
     levelManager.LoadNextLevel();
 }
Пример #29
0
 void LoadNextLevel()
 {
     levelManager = GameObject.FindObjectOfType<LevelManager>();
     levelManager.LoadNextLevel();
 }
Пример #30
0
 void SimulateWin()
 {
     levelmanager.LoadNextLevel();
 }
Пример #31
0
 public void SkipButtonAction()
 {
     SoundManager.instance.PlayButtonSound();
     LevelManager.LoadNextLevel();
     ClosePanel();
 }