Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Somethings wrong with either Unity or Visual Studio..

Discussion in 'Editor & General Support' started by Brian-Washechek, Mar 24, 2021.

  1. Brian-Washechek

    Brian-Washechek

    Joined:
    Aug 5, 2015
    Posts:
    846
    I can't find anything wrong with my project at all! I'm trying to get my computer to display this image. (Create A Screen-Shot with Unity. 4:29 - 9:29).
    Unity help request 3-23-2021 - 2.PNG

    I guess it's the "Assets\Scripts\LevelEnd.cs. I can't figure out what my computer has a problem with at all. Maybe you can.
     
    Last edited: Mar 25, 2021
  2. BABIA_GameStudio

    BABIA_GameStudio

    Joined:
    Mar 31, 2020
    Posts:
    488
    I don't think people are going to buy a Udemy course just to try to help you out. Perhaps you should post your code that is in the GameManager class, after all that it is
    GameManager.instance.EndLevelCo()
    which appears to be the problem.
    But if this is working in the course, then you have probably made a mistake somewhere and you would need to go back through your scripts to find them by comparing with the course materials. You can also ask in the Udemy course, as there is usually a Q/A section within each course where you can get help from others who are doing/have done the course.
     
  3. m0guz

    m0guz

    Joined:
    Mar 4, 2015
    Posts:
    31
    `GameManager.instance.EndLevelCo()` should be IEnumator with `yield return x` return

    Code (CSharp):
    1. public IEnumator EndLevelCo()
    2. {
    3.     // your code
    4.     yield return null;
    5. }
     
  4. Brian-Washechek

    Brian-Washechek

    Joined:
    Aug 5, 2015
    Posts:
    846
    Wow. Sometimes you really feel stupid.

    "public IEnumerable EndLevelCo()" During these times looks a lot like "public IEnumerator EndLevelCo()". Thanks though!