コード例 #1
0
    // Use this for initialization
    public void StartGame()
    {
        GameObject ui_holder = GameObject.Find("UI");

        //Find Component classes
        magicController      = GetComponent <MagicController>();
        roundBonusManager    = GetComponent <RoundBonusManager>();
        global               = GetComponent <GlobalFlags>();
        networkedUI          = ui_holder.GetComponent <Networked_UI_Updater>();
        progressTrackManager = ui_holder.GetComponent <TracksInterface>();
        townFoundManager     = GetComponent <TownFoundingBonusManager>();
        wonderController     = GetComponent <WonderController>();
        roundEndBonusManager = GetComponent <RoundEndBonusManager>();
        turnController       = GameObject.Find("TurnController(Clone)").GetComponent <TurnController>(); //Networked object so must be it's own game object separate from GameController.

        //Create component classes
        cultController = new CultController();

        localPlayer = GameObject.FindWithTag("Player_Object").GetComponent <Player>();

        wonderController.SetUp();
        magicController.SetUpSpells();
        networkedUI.SetUpUI();
        progressTrackManager.SetUp();
        townFoundManager.SetUp();
        roundBonusManager.SetUp();
        roundEndBonusManager.SetUp();
        SetUpTracks();
        global.Set_Up();
    }