コード例 #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
ファイル: GameManager.cs プロジェクト: sfraguela/JesterJump
 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);
     //		}
 }
コード例 #3
0
 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);
 }
コード例 #4
0
ファイル: StateManager.cs プロジェクト: sfraguela/JesterJump
 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);
 }