Search Unity

Scene doesnt running

Discussion in 'Editor & General Support' started by mustafaefdal, Mar 6, 2019.

  1. mustafaefdal

    mustafaefdal

    Joined:
    Feb 10, 2019
    Posts:
    3
    Hello,
    When I run the second level directly, I can play without any problems. However, when I start the game from the beginning, the main menu comes first level (working properly) and then the level change scene. level changes to the second level with the button in the scene. the second level opens, I can control the camera with the mouse, but the character does not play, does not move. What could be the solution?

    Greetings
     
  2. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    Please show the code that you are using.
     
  3. mustafaefdal

    mustafaefdal

    Joined:
    Feb 10, 2019
    Posts:
    3
    im using this code for passing level2

    Code (CSharp):
    1. using System.Collections;
    2. using System.Collections.Generic;
    3. using UnityEngine;
    4. using UnityEngine.SceneManagement;
    5. using UnityEngine.UI;
    6.  
    7.  
    8.  
    9. public class PassingNextandMain : MonoBehaviour
    10. {
    11.     public void nextlevel()
    12.     {
    13.         SceneManager.LoadScene("2");
    14.     }
     
  4. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    "but the character does not play, does not move" <--- THAT code
     
  5. mustafaefdal

    mustafaefdal

    Joined:
    Feb 10, 2019
    Posts:
    3
    I'm not using a special code for the character, I'm using unity's fps controller. I'm sorry, but I don't fully understand the code you want. I'm very toy in unity