Пример #1
0
    void Start()
    {
        stateManager = GetComponent <StateManager> ();
        adMnan       = GetComponent <AdMan> ();
        gameStats    = GetComponent <GameStats> ();
        menuManager  = GetComponent <MenuManager> ();
        lanePlacer   = GameObject.Find("PROCEDURAL").GetComponent <LanePlacer> ();
        gameCamera   = Camera.main.GetComponent <GameCamera> ();
//		if(isFirstGame){
//			menuManager.SwitchMenu(MenuManager.MenuTypes.PreGame);
//		}
    }
Пример #2
0
 void Start()
 {
     stateManager = GetComponent<StateManager> ();
     adMnan = GetComponent<AdMan> ();
     gameStats = GetComponent<GameStats> ();
     menuManager = GetComponent<MenuManager> ();
     lanePlacer = GameObject.Find ("PROCEDURAL").GetComponent<LanePlacer> ();
     gameCamera = Camera.main.GetComponent<GameCamera> ();
     //		if(isFirstGame){
     //			menuManager.SwitchMenu(MenuManager.MenuTypes.PreGame);
     //		}
 }