Search Unity

Feedback help!!!!! they removed the gameManager in unity class 2019

Discussion in 'Scripting' started by gkraken333, Sep 16, 2019.

  1. gkraken333

    gkraken333

    Joined:
    Sep 16, 2019
    Posts:
    7
    well, I am an amateur programmer working on a 2d rpg with the help of a unity 2018 course in udemy, the problem is the following, the instructor uses the following syntax:


    GameManager.instance.player.transform


    The 2019 version of unity does not have this class, and I don't know how I can get the same results with another method, I am trying to implement it in a soft AI so that an enemy can identify the player's position and go in their direction .
     
  2. StarManta

    StarManta

    Joined:
    Oct 23, 2006
    Posts:
    8,775
    There has never been a class called GameManager in Unity. This was likely a class created earlier in the course/tutorial.
     
    Vryken, gkraken333 and SparrowGS like this.
  3. gkraken333

    gkraken333

    Joined:
    Sep 16, 2019
    Posts:
    7
    I just realized the error, currently working on the GameManager, I appreciate the quick response to my problem, I would be happy to review your posts