// Use this for initialization
	void Start () {
		infoBlock1 = transform.GetChild(0).GetComponent<MainMenuPlayerInfoBlock>();
		infoBlock2 = transform.GetChild(1).GetComponent<MainMenuPlayerInfoBlock>();
		infoBlock3 = transform.GetChild(2).GetComponent<MainMenuPlayerInfoBlock>();
		infoBlock4 = transform.GetChild(3).GetComponent<MainMenuPlayerInfoBlock>();

		infoBlock1.PlayerAdded();
	}
    // Use this for initialization
    void Start()
    {
        infoBlock1 = transform.GetChild(0).GetComponent <MainMenuPlayerInfoBlock>();
        infoBlock2 = transform.GetChild(1).GetComponent <MainMenuPlayerInfoBlock>();
        infoBlock3 = transform.GetChild(2).GetComponent <MainMenuPlayerInfoBlock>();
        infoBlock4 = transform.GetChild(3).GetComponent <MainMenuPlayerInfoBlock>();

        infoBlock1.PlayerAdded();
    }
Beispiel #3
0
        /// <summary>
        /// Checks if player one is occupied in a tab menu.
        /// </summary>
        /// <returns>Whether player one is occupied in a tab menu.</returns>
        private bool PlayerOneOccupied()
        {
            MainMenuPlayerInfoBlock block = TabsPanel.GetBlock(0);

            return(block == null ? false : block.Occupied());
        }