Esempio n. 1
0
    void Awake()
    {
        gamestartGUI    = GameObject.Find("gamestartGUI");
        leaderboardCont = GameObject.Find("leaderboardGUI").GetComponent <LeaderBoardGUIController>();
        gameoverGUI     = GameObject.Find("gameoverGUI");
        continueGUI     = GameObject.Find("continueGUI");
        continueGUI.SetActive(false);

        resultCont  = GameObject.Find("Result").GetComponent <ResultController>();
        player      = GameObject.Find("Character").GetComponent <PlayerController>();
        stageCont   = GameObject.Find("AreaObjects").GetComponent <StageController>();
        timerCont   = GameObject.Find("Timer").GetComponent <TimerController>();
        balloonCont = GameObject.Find("CurrentBalloon").GetComponent <CurrentBalloonController>();
        bgCont      = GameObject.Find("BackGround").GetComponent <BackGroundController>();
        settings    = gameObject.GetComponent <GameSettings>();

        useBalloon = 1;

        //リーダーボードのIDセット.
        LEADERBOARD_ID = leaderboardId;
        FASGui.SetLeaderboardId(LEADERBOARD_ID);
    }
    void Awake()
    {
        gamestartGUI = GameObject.Find("gamestartGUI");
        leaderboardCont = GameObject.Find("leaderboardGUI").GetComponent<LeaderBoardGUIController>();
        gameoverGUI = GameObject.Find("gameoverGUI");
        continueGUI = GameObject.Find("continueGUI");
        continueGUI.SetActive(false);

        resultCont = GameObject.Find("Result").GetComponent<ResultController>();
        player = GameObject.Find("Character").GetComponent<PlayerController>();
        stageCont = GameObject.Find("AreaObjects").GetComponent<StageController>();
        timerCont = GameObject.Find("Timer").GetComponent<TimerController>();
        balloonCont = GameObject.Find("CurrentBalloon").GetComponent<CurrentBalloonController>();
        bgCont = GameObject.Find("BackGround").GetComponent<BackGroundController>();
        settings = gameObject.GetComponent<GameSettings>();

        useBalloon = 1;

        //リーダーボードのIDセット.
        LEADERBOARD_ID = leaderboardId;
        FASGui.SetLeaderboardId(LEADERBOARD_ID);
    }