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); // } }
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); // } }
void Start() { _ints = this; //screen things Screen.orientation = ScreenOrientation.AutoRotation; //---- gameManger = GetComponent <GameManager> (); adMan = GetComponent <AdMan> (); menuManager = GetComponent <MenuManager> (); dDA = GetComponent <DDA> (); currentGameState = GameStates.GameStart; SwitchGameState(GameStates.GameLoad); }
void Start() { _ints = this; //screen things Screen.orientation = ScreenOrientation.AutoRotation; //---- gameManger = GetComponent<GameManager> (); adMan = GetComponent<AdMan> (); menuManager = GetComponent<MenuManager> (); dDA = GetComponent<DDA> (); currentGameState = GameStates.GameStart; SwitchGameState (GameStates.GameLoad); }