void Start()
{
for (int i = 0; i < 6; i++)
{
GameObject temp = GameObject.Find("Crosshair Inner " + (i + 1));
GUITexture tempTex = temp.GetComponent<GUITexture>();
crosshairSections.Add(tempTex);
}
GameObject manager = GameObject.Find("GameManager");
mScript = manager.GetComponent<GameManager>();
pScript = mScript.myAvatar.GetComponent<Player>();
for (int i = 0; i < mScript.colors.Count; i++)
{
gameColors.Add(mScript.colors[i]);
}
// set sizes
scoreBoxWidth = Screen.width * .90f;
halfScoreBoxWidth = scoreBoxWidth * .5f;
eighthScoreBoxWidth = halfScoreBoxWidth * .25f;
scoreBoxHeight = Screen.height * .75f;
scoreBoxLeft = Screen.width * .5f - scoreBoxWidth * .5f;
scoreBoxTop = Screen.height * .5f - scoreBoxHeight * .5f;
headerPos1 = halfScoreBoxWidth * .2f;
headerPos2 = halfScoreBoxWidth * .25f;
headerNameWidth = scoreBoxWidth * .5f * .2f;
headerWidth = halfScoreBoxWidth * .2f;
playerElementWidth = halfScoreBoxWidth * .15f;
listDivider = mScript.numberOfTeams * .5f;
if (listDivider % 2 != 0)
listDivider = Mathf.Ceil(listDivider);//listDivider+ (listDivider - (int)listDivider);
}