Ejemplo n.º 1
0
    void Start()
    {
        networkManager = GetComponent<NetworkManagerScript>();
        mainMenu = GetComponent<MainMenuScript>();
        gameManager = GetComponent<GameManagerScript>();
        playerData = GetComponent<PlayerDataScript>();
        menuManager = GetComponent<MenuManager>();
        hud = GetComponent<HUDScript>();
        chatRoom = GetComponent<ChatRoomScript>();

        // column rects			Horizontal start		Vert Start		Width					Height
        firstCol = new Rect(	12,						 50,		Screen.width/3 - 18,	Screen.height - 50);
        secCol = new Rect(		Screen.width/3 + 6,		 50,		Screen.width/3 - 68, 	Screen.height - 50);
        thirdCol = new Rect(	2*Screen.width/3 - 44,	 50,		Screen.width/3 + 32, 	Screen.height - 50);

        //the list of teams, as strings
        List<Team> teams = Team.GetTeamList();
        teamList = new string[teams.Count];
        for(int x = 0; x < teams.Count; x++)
        {
            teamList[x] = teams[x].name;
        }
    }
Ejemplo n.º 2
0
    void Start()
    {
        networkManager = GetComponent<NetworkManagerScript>();
        mainMenu = GetComponent<MainMenuScript>();
        pause = GetComponent<PauseMenuScript>();
        scoreMenu = GetComponent<ScoreMenuScript>();
        chatRoom = GetComponent<ChatRoomScript>();
        chatBoxColor = new Color(1,1,1,GameSettings.chatBoxOpacity);

        chatRect = new Rect(0, 100, 300, 400);
    }