Search Unity

Why are my Game

Discussion in 'Scripting' started by ColdWarrior, May 30, 2015.

  1. ColdWarrior

    ColdWarrior

    Joined:
    May 8, 2015
    Posts:
    12
    I have 2 scripts attached to an empty GameObject, it is going to be transferred between my 3 scenes carrying a GameManager script and a StateManager script.

    The first screen allows the player to choose between four teams (colors)

    after 2 teams are selected the player can click a start button, which calls a function from StateManager to change to the gameState to draft, Load the Scene_2, and then call a function from GameManager to layout the pieces for the draft phase.

    But it seems to me like it is not happening in that order. The pieces are created and then cleared immediately.
     
  2. krougeau

    krougeau

    Joined:
    Jul 1, 2012
    Posts:
    456
    If you'll post the 2 scripts, I'd be happy to examine them and see if there's anything obviously amiss. Please be sure to use proper code tags when posting your scripts.