Loading...   


using UnityEngine;
using System.Collections;
using UnityEngine.UI;
using UnityEngine.EventSystems;

public class CharacterSelect : MonoBehaviour {
	//charselect
	public GameObject CCPanel1;
	public GameObject CCPanel2;
	public GameObject CCPanel3;
	public GameObject CButton1;
	public GameObject CButton2;
	public GameObject CButton3;
	public GameObject CButton4;
	public GameObject CButton5;
	public GameObject CButton6;
	public GameObject CButton7;
	public GameObject CButton8;
	public GameObject CEnter;
	public GameObject CQuit;
	//raceselect
	public GameObject Back1;
	public GameObject Next1;
	public GameObject Back2;
	public GameObject Next2;
	public GameObject Male;
	public Text MaleText;
	public GameObject Female;
	public Text FemaleText;
	public GameObject Barbarian;
	public Text BarbarianText;
	public GameObject DarkElf;
	public Text DarkElfText;
	public GameObject Dwarf;
	public Text DwarfText;
	public GameObject Erudite;
	public Text EruditeText;
	public GameObject Gnome;
	public Text GnomeText;
	public GameObject HalfElf;
	public Text HalfElfText;
	public GameObject Halfling;
	public Text HalflingText;
	public GameObject HighElf;
	public Text HighElfText;
	public GameObject Human;
	public Text HumanText;
	public GameObject Iksar;
	public Text IksarText;
	public GameObject Ogre;
	public Text OgreText;
	public GameObject Troll;
	public Text TrollText;
	public GameObject WoodElf;
	public Text WoodElfText;
	//classselect
	public GameObject Bard;
	public Text BardText;
	public GameObject Cleric;
	public Text ClericText;
	public GameObject Druid;
	public Text DruidText;
	public GameObject Enchanter;
	public Text EnchanterText;
	public GameObject Magician;
	public Text MagicianText;
	public GameObject Monk;
	public Text MonkText;
	public GameObject Necromancer;
	public Text NecromancerText;
	public GameObject Paladin;
	public Text PaladinText;
	public GameObject Ranger;
	public Text RangerText;
	public GameObject Rogue;
	public Text RogueText;
	public GameObject ShadowKnight;
	public Text ShadowKnightText;
	public GameObject Shaman;
	public Text ShamanText;
	public GameObject Warrior;
	public Text WarriorText;
	public GameObject Wizard;
	public Text WizardText;
	//dietyselect
	public GameObject Agnostic;
	public Text AgnosticText;
	public GameObject Bertoxxulous;
	public Text BertoxxulousText;
	public GameObject Bristlebane;
	public Text BristlebaneText;
	public GameObject CazicThule;
	public Text CazicThuleText;
	public GameObject Innoruuk;
	public Text InnoruukText;
	public GameObject Karana;
	public Text KaranaText;
	public GameObject Erollisi;
	public Text ErollisiText;
	public GameObject Mithaniel;
	public Text MithanielText;
	public GameObject Rodcet;
	public Text RodcetText;
	public GameObject Prexus;
	public Text PrexusText;
	public GameObject Quellious;
	public Text QuelliousText;
	public GameObject Solusek;
	public Text SolusekText;
	public GameObject Brell;
	public Text BrellText;
	public GameObject Tribunal;
	public Text TribunalText;
	public GameObject Tunare;
	public Text TunareText;
	public GameObject Veeshan;
	public Text VeeshanText;
	public GameObject Rallos;
	public Text RallosText;
	//cityselect
	public GameObject Erudin;
	public Text ErudinText;
	public GameObject Qeynos;
	public Text QeynosText;
	public GameObject Halas;
	public Text HalasText;
	public GameObject Rivervale;
	public Text RivervaleText;
	public GameObject Freeport;
	public Text FreeportText;
	public GameObject Neriak;
	public Text NeriakText;
	public GameObject Grobb;
	public Text GrobbText;
	public GameObject Oggok;
	public Text OggokText;
	public GameObject Kaladim;
	public Text KaladimText;
	public GameObject Kelethin;
	public Text KelethinText;
	public GameObject Felwithe;
	public Text FelwitheText;
	public GameObject Akanon;
	public Text AkanonText;
	public GameObject Cabilis;
	public Text CabilisText;

	public void setupBtn()
	{
		string param = "clack";
		CCPanel1.SetActive(true);	
		CCPanel2.SetActive(false);
		CCPanel3.SetActive(false);

		CButton1.GetComponent<Button>().onClick.AddListener(delegate { CbtnClicked(param); });
		CButton2.GetComponent<Button>().onClick.AddListener(delegate { CbtnClicked(param); });
		CButton3.GetComponent<Button>().onClick.AddListener(delegate { CbtnClicked(param); });
		CButton4.GetComponent<Button>().onClick.AddListener(delegate { CbtnClicked(param); });
		CButton5.GetComponent<Button>().onClick.AddListener(delegate { CbtnClicked(param); });
		CButton6.GetComponent<Button>().onClick.AddListener(delegate { CbtnClicked(param); });
		CButton7.GetComponent<Button>().onClick.AddListener(delegate { CbtnClicked(param); });
		CButton8.GetComponent<Button>().onClick.AddListener(delegate { CbtnClicked(param); });
		CEnter.GetComponent<Button>().onClick.AddListener(delegate { CbtnClicked(param); });
		CQuit.GetComponent<Button>().onClick.AddListener(delegate { CbtnClicked(param); });

		Back1.GetComponent<Button>().onClick.AddListener(delegate { Back1Click(param); });
		Next1.GetComponent<Button>().onClick.AddListener(delegate { Next1Click(param); });

		Back2.GetComponent<Button>().onClick.AddListener(delegate { Back2Click(param); });
		Next2.GetComponent<Button>().onClick.AddListener(delegate { Next2Click(param); });

		Male.GetComponent<Button>().onClick.AddListener(delegate { MaleClick(param); });
		Female.GetComponent<Button>().onClick.AddListener(delegate { FemaleClick(param); });
		//race
		Barbarian.GetComponent<Button>().onClick.AddListener(delegate { BarbarianClick(param); });
		DarkElf.GetComponent<Button>().onClick.AddListener(delegate { DarkElfClick(param); });
		Dwarf.GetComponent<Button>().onClick.AddListener(delegate { DwarfClick(param); });
		Erudite.GetComponent<Button>().onClick.AddListener(delegate { EruditeClick(param); });
		Gnome.GetComponent<Button>().onClick.AddListener(delegate { GnomeClick(param); });
		HalfElf.GetComponent<Button>().onClick.AddListener(delegate { HalfElfClick(param); });
		Halfling.GetComponent<Button>().onClick.AddListener(delegate { HalflingClick(param); });
		HighElf.GetComponent<Button>().onClick.AddListener(delegate { HighElfClick(param); });
		Human.GetComponent<Button>().onClick.AddListener(delegate { HumanClick(param); });
		Iksar.GetComponent<Button>().onClick.AddListener(delegate { IksarClick(param); });
		Ogre.GetComponent<Button>().onClick.AddListener(delegate { OgreClick(param); });
		Troll.GetComponent<Button>().onClick.AddListener(delegate { TrollClick(param); });
		WoodElf.GetComponent<Button>().onClick.AddListener(delegate { WoodElfClick(param); });
		//class
		Bard.GetComponent<Button>().onClick.AddListener(delegate { BardClick(param); });
		Cleric.GetComponent<Button>().onClick.AddListener(delegate { ClericClick(param); });
		Druid.GetComponent<Button>().onClick.AddListener(delegate { DruidClick(param); });
		Enchanter.GetComponent<Button>().onClick.AddListener(delegate { EnchanterClick(param); });
		Magician.GetComponent<Button>().onClick.AddListener(delegate { MagicianClick(param); });
		Monk.GetComponent<Button>().onClick.AddListener(delegate { MonkClick(param); });
		Necromancer.GetComponent<Button>().onClick.AddListener(delegate { NecromancerClick(param); });
		Paladin.GetComponent<Button>().onClick.AddListener(delegate { PaladinClick(param); });
		Ranger.GetComponent<Button>().onClick.AddListener(delegate { RangerClick(param); });
		Rogue.GetComponent<Button>().onClick.AddListener(delegate { RogueClick(param); });
		ShadowKnight.GetComponent<Button>().onClick.AddListener(delegate { ShadowKnightClick(param); });
		Shaman.GetComponent<Button>().onClick.AddListener(delegate { ShamanClick(param); });
		Warrior.GetComponent<Button>().onClick.AddListener(delegate { WarriorClick(param); });	
		Wizard.GetComponent<Button>().onClick.AddListener(delegate { WizardClick(param); });
		//deity
		Agnostic.GetComponent<Button>().onClick.AddListener(delegate { AgnosticClick(param); });
		Bertoxxulous.GetComponent<Button>().onClick.AddListener(delegate { BertoxxulousClick(param); });
		Bristlebane.GetComponent<Button>().onClick.AddListener(delegate { BristlebaneClick(param); });
		CazicThule.GetComponent<Button>().onClick.AddListener(delegate { CazicThuleClick(param); });
		Innoruuk.GetComponent<Button>().onClick.AddListener(delegate { InnoruukClick(param); });
		Karana.GetComponent<Button>().onClick.AddListener(delegate { KaranaClick(param); });
		Erollisi.GetComponent<Button>().onClick.AddListener(delegate { ErollisiClick(param); });
		Mithaniel.GetComponent<Button>().onClick.AddListener(delegate { MithanielClick(param); });
		Rodcet.GetComponent<Button>().onClick.AddListener(delegate { RodcetClick(param); });
		Prexus.GetComponent<Button>().onClick.AddListener(delegate { PrexusClick(param); });
		Quellious.GetComponent<Button>().onClick.AddListener(delegate { QuelliousClick(param); });
		Solusek.GetComponent<Button>().onClick.AddListener(delegate { SolusekClick(param); });
		Brell.GetComponent<Button>().onClick.AddListener(delegate { BrellClick(param); });
		Tribunal.GetComponent<Button>().onClick.AddListener(delegate { TribunalClick(param); });
		Tunare.GetComponent<Button>().onClick.AddListener(delegate { TunareClick(param); });
		Veeshan.GetComponent<Button>().onClick.AddListener(delegate { VeeshanClick(param); });
		Rallos.GetComponent<Button>().onClick.AddListener(delegate { RallosClick(param); });
		//city
		Erudin.GetComponent<Button>().onClick.AddListener(delegate { ErudinClick(param); });
		Qeynos.GetComponent<Button>().onClick.AddListener(delegate { QeynosClick(param); });
		Halas.GetComponent<Button>().onClick.AddListener(delegate { HalasClick(param); });
		Rivervale.GetComponent<Button>().onClick.AddListener(delegate { RivervaleClick(param); });
		Freeport.GetComponent<Button>().onClick.AddListener(delegate { FreeportClick(param); });
		Neriak.GetComponent<Button>().onClick.AddListener(delegate { NeriakClick(param); });
		Grobb.GetComponent<Button>().onClick.AddListener(delegate { GrobbClick(param); });
		Oggok.GetComponent<Button>().onClick.AddListener(delegate { OggokClick(param); });
		Kaladim.GetComponent<Button>().onClick.AddListener(delegate { KaladimClick(param); });
		Kelethin.GetComponent<Button>().onClick.AddListener(delegate { KelethinClick(param); });
		Felwithe.GetComponent<Button>().onClick.AddListener(delegate { FelwitheClick(param); });
		Akanon.GetComponent<Button>().onClick.AddListener(delegate { AkanonClick(param); });
		Cabilis.GetComponent<Button>().onClick.AddListener(delegate { CabilisClick(param); });
	}
	

	public void CbtnClicked(string param)
	{
//		Debug.Log("foo " + param);
		CCPanel1.SetActive(false);	
		CCPanel2.SetActive(true);	
		CCPanel3.SetActive(false);
	}
	public void Back1Click(string param)
	{
		//		Debug.Log("foo " + param);
		CCPanel1.SetActive(true);	
		CCPanel2.SetActive(false);	
		CCPanel3.SetActive(false);
	}
	public void Next1Click(string param)
	{
		//		Debug.Log("foo " + param);
		CCPanel1.SetActive(false);	
		CCPanel2.SetActive(false);	
		CCPanel3.SetActive(true);
	}
	public void Back2Click(string param)
	{
		//		Debug.Log("foo " + param);
		CCPanel1.SetActive(false);	
		CCPanel2.SetActive(true);	
		CCPanel3.SetActive(false);
	}
	public void Next2Click(string param)
	{
		//		Debug.Log("foo " + param);
		CCPanel1.SetActive(true);	
		CCPanel2.SetActive(false);	
		CCPanel3.SetActive(false);
	}
	public void MaleClick(string param)
	{
		MaleText.color = Color.green;
		FemaleText.color = Color.white;
	}
	public void FemaleClick(string param)
	{
		FemaleText.color = Color.green;
		MaleText.color = Color.white;
	}
	public void BarbarianClick(string param)
	{
		BarbarianText.color = Color.green;
		DarkElfText.color = Color.white;
		DwarfText.color = Color.white;
		EruditeText.color = Color.white;
		GnomeText.color = Color.white;
		HalfElfText.color = Color.white;
		HalflingText.color = Color.white;
		HighElfText.color = Color.white;
		HumanText.color = Color.white;
		IksarText.color = Color.white;
		OgreText.color = Color.white;
		TrollText.color = Color.white;
		WoodElfText.color = Color.white;

	}
	public void DarkElfClick(string param)
	{
		BarbarianText.color = Color.white;
		DarkElfText.color = Color.green;
		DwarfText.color = Color.white;
		EruditeText.color = Color.white;
		GnomeText.color = Color.white;
		HalfElfText.color = Color.white;
		HalflingText.color = Color.white;
		HighElfText.color = Color.white;
		HumanText.color = Color.white;
		IksarText.color = Color.white;
		OgreText.color = Color.white;
		TrollText.color = Color.white;
		WoodElfText.color = Color.white;
	}
	public void DwarfClick(string param)
	{
		BarbarianText.color = Color.white;
		DarkElfText.color = Color.white;
		DwarfText.color = Color.green;
		EruditeText.color = Color.white;
		GnomeText.color = Color.white;
		HalfElfText.color = Color.white;
		HalflingText.color = Color.white;
		HighElfText.color = Color.white;
		HumanText.color = Color.white;
		IksarText.color = Color.white;
		OgreText.color = Color.white;
		TrollText.color = Color.white;
		WoodElfText.color = Color.white;
	}
	public void EruditeClick(string param)
	{
		BarbarianText.color = Color.white;
		DarkElfText.color = Color.white;
		DwarfText.color = Color.white;
		EruditeText.color = Color.green;
		GnomeText.color = Color.white;
		HalfElfText.color = Color.white;
		HalflingText.color = Color.white;
		HighElfText.color = Color.white;
		HumanText.color = Color.white;
		IksarText.color = Color.white;
		OgreText.color = Color.white;
		TrollText.color = Color.white;
		WoodElfText.color = Color.white;
	}
	public void GnomeClick(string param)
	{
		BarbarianText.color = Color.white;
		DarkElfText.color = Color.white;
		DwarfText.color = Color.white;
		EruditeText.color = Color.white;
		GnomeText.color = Color.green;
		HalfElfText.color = Color.white;
		HalflingText.color = Color.white;
		HighElfText.color = Color.white;
		HumanText.color = Color.white;
		IksarText.color = Color.white;
		OgreText.color = Color.white;
		TrollText.color = Color.white;
		WoodElfText.color = Color.white;
	}
	public void HalfElfClick(string param)
	{
		BarbarianText.color = Color.white;
		DarkElfText.color = Color.white;
		DwarfText.color = Color.white;
		EruditeText.color = Color.white;
		GnomeText.color = Color.white;
		HalfElfText.color = Color.green;
		HalflingText.color = Color.white;
		HighElfText.color = Color.white;
		HumanText.color = Color.white;
		IksarText.color = Color.white;
		OgreText.color = Color.white;
		TrollText.color = Color.white;
		WoodElfText.color = Color.white;
	}
	public void HalflingClick(string param)
	{
		BarbarianText.color = Color.white;
		DarkElfText.color = Color.white;
		DwarfText.color = Color.white;
		EruditeText.color = Color.white;
		GnomeText.color = Color.white;
		HalfElfText.color = Color.white;
		HalflingText.color = Color.green;
		HighElfText.color = Color.white;
		HumanText.color = Color.white;
		IksarText.color = Color.white;
		OgreText.color = Color.white;
		TrollText.color = Color.white;
		WoodElfText.color = Color.white;
	}
	public void HighElfClick(string param)
	{
		BarbarianText.color = Color.white;
		DarkElfText.color = Color.white;
		DwarfText.color = Color.white;
		EruditeText.color = Color.white;
		GnomeText.color = Color.white;
		HalfElfText.color = Color.white;
		HalflingText.color = Color.white;
		HighElfText.color = Color.green;
		HumanText.color = Color.white;
		IksarText.color = Color.white;
		OgreText.color = Color.white;
		TrollText.color = Color.white;
		WoodElfText.color = Color.white;
	}
	public void HumanClick(string param)
	{
		BarbarianText.color = Color.white;
		DarkElfText.color = Color.white;
		DwarfText.color = Color.white;
		EruditeText.color = Color.white;
		GnomeText.color = Color.white;
		HalfElfText.color = Color.white;
		HalflingText.color = Color.white;
		HighElfText.color = Color.white;
		HumanText.color = Color.green;
		IksarText.color = Color.white;
		OgreText.color = Color.white;
		TrollText.color = Color.white;
		WoodElfText.color = Color.white;
	}
	public void IksarClick(string param)
	{
		BarbarianText.color = Color.white;
		DarkElfText.color = Color.white;
		DwarfText.color = Color.white;
		EruditeText.color = Color.white;
		GnomeText.color = Color.white;
		HalfElfText.color = Color.white;
		HalflingText.color = Color.white;
		HighElfText.color = Color.white;
		HumanText.color = Color.white;
		IksarText.color = Color.green;
		OgreText.color = Color.white;
		TrollText.color = Color.white;
		WoodElfText.color = Color.white;
	}
	public void OgreClick(string param)
	{
		BarbarianText.color = Color.white;
		DarkElfText.color = Color.white;
		DwarfText.color = Color.white;
		EruditeText.color = Color.white;
		GnomeText.color = Color.white;
		HalfElfText.color = Color.white;
		HalflingText.color = Color.white;
		HighElfText.color = Color.white;
		HumanText.color = Color.white;
		IksarText.color = Color.white;
		OgreText.color = Color.green;
		TrollText.color = Color.white;
		WoodElfText.color = Color.white;
	}
	public void TrollClick(string param)
	{
		BarbarianText.color = Color.white;
		DarkElfText.color = Color.white;
		DwarfText.color = Color.white;
		EruditeText.color = Color.white;
		GnomeText.color = Color.white;
		HalfElfText.color = Color.white;
		HalflingText.color = Color.white;
		HighElfText.color = Color.white;
		HumanText.color = Color.white;
		IksarText.color = Color.white;
		OgreText.color = Color.white;
		TrollText.color = Color.green;
		WoodElfText.color = Color.white;
	}
	public void WoodElfClick(string param)
	{
		BarbarianText.color = Color.white;
		DarkElfText.color = Color.white;
		DwarfText.color = Color.white;
		EruditeText.color = Color.white;
		GnomeText.color = Color.white;
		HalfElfText.color = Color.white;
		HalflingText.color = Color.white;
		HighElfText.color = Color.white;
		HumanText.color = Color.white;
		IksarText.color = Color.white;
		OgreText.color = Color.white;
		TrollText.color = Color.white;
		WoodElfText.color = Color.green;
	}


	public void BardClick(string param)
	{
		BardText.color = Color.green;
		ClericText.color = Color.white;
		DruidText.color = Color.white;
		EnchanterText.color = Color.white;
		MagicianText.color = Color.white;
		MonkText.color = Color.white;
		NecromancerText.color = Color.white;
		PaladinText.color = Color.white;
		RangerText.color = Color.white;
		RogueText.color = Color.white;
		ShadowKnightText.color = Color.white;
		ShamanText.color = Color.white;
		WarriorText.color = Color.white;
		WizardText.color = Color.white;
	}
	public void ClericClick(string param)
	{
		BardText.color = Color.white;
		ClericText.color = Color.green;
		DruidText.color = Color.white;
		EnchanterText.color = Color.white;
		MagicianText.color = Color.white;
		MonkText.color = Color.white;
		NecromancerText.color = Color.white;
		PaladinText.color = Color.white;
		RangerText.color = Color.white;
		RogueText.color = Color.white;
		ShadowKnightText.color = Color.white;
		ShamanText.color = Color.white;
		WarriorText.color = Color.white;
		WizardText.color = Color.white;
	}
	public void DruidClick(string param)
	{
		BardText.color = Color.white;
		ClericText.color = Color.white;
		DruidText.color = Color.green;
		EnchanterText.color = Color.white;
		MagicianText.color = Color.white;
		MonkText.color = Color.white;
		NecromancerText.color = Color.white;
		PaladinText.color = Color.white;
		RangerText.color = Color.white;
		RogueText.color = Color.white;
		ShadowKnightText.color = Color.white;
		ShamanText.color = Color.white;
		WarriorText.color = Color.white;
		WizardText.color = Color.white;
	}
	public void EnchanterClick(string param)
	{
		BardText.color = Color.white;
		ClericText.color = Color.white;
		DruidText.color = Color.white;
		EnchanterText.color = Color.green;
		MagicianText.color = Color.white;
		MonkText.color = Color.white;
		NecromancerText.color = Color.white;
		PaladinText.color = Color.white;
		RangerText.color = Color.white;
		RogueText.color = Color.white;
		ShadowKnightText.color = Color.white;
		ShamanText.color = Color.white;
		WarriorText.color = Color.white;
		WizardText.color = Color.white;
	}
	public void MagicianClick(string param)
	{
		BardText.color = Color.white;
		ClericText.color = Color.white;
		DruidText.color = Color.white;
		EnchanterText.color = Color.white;
		MagicianText.color = Color.green;
		MonkText.color = Color.white;
		NecromancerText.color = Color.white;
		PaladinText.color = Color.white;
		RangerText.color = Color.white;
		RogueText.color = Color.white;
		ShadowKnightText.color = Color.white;
		ShamanText.color = Color.white;
		WarriorText.color = Color.white;
		WizardText.color = Color.white;
	}
	public void MonkClick(string param)
	{
		BardText.color = Color.white;
		ClericText.color = Color.white;
		DruidText.color = Color.white;
		EnchanterText.color = Color.white;
		MagicianText.color = Color.white;
		MonkText.color = Color.green;
		NecromancerText.color = Color.white;
		PaladinText.color = Color.white;
		RangerText.color = Color.white;
		RogueText.color = Color.white;
		ShadowKnightText.color = Color.white;
		ShamanText.color = Color.white;
		WarriorText.color = Color.white;
		WizardText.color = Color.white;
	}
	public void NecromancerClick(string param)
	{
		BardText.color = Color.white;
		ClericText.color = Color.white;
		DruidText.color = Color.white;
		EnchanterText.color = Color.white;
		MagicianText.color = Color.white;
		MonkText.color = Color.white;
		NecromancerText.color = Color.green;
		PaladinText.color = Color.white;
		RangerText.color = Color.white;
		RogueText.color = Color.white;
		ShadowKnightText.color = Color.white;
		ShamanText.color = Color.white;
		WarriorText.color = Color.white;
		WizardText.color = Color.white;
	}
	public void PaladinClick(string param)
	{
		BardText.color = Color.white;
		ClericText.color = Color.white;
		DruidText.color = Color.white;
		EnchanterText.color = Color.white;
		MagicianText.color = Color.white;
		MonkText.color = Color.white;
		NecromancerText.color = Color.white;
		PaladinText.color = Color.green;
		RangerText.color = Color.white;
		RogueText.color = Color.white;
		ShadowKnightText.color = Color.white;
		ShamanText.color = Color.white;
		WarriorText.color = Color.white;
		WizardText.color = Color.white;
	}
	public void RangerClick(string param)
	{
		BardText.color = Color.white;
		ClericText.color = Color.white;
		DruidText.color = Color.white;
		EnchanterText.color = Color.white;
		MagicianText.color = Color.white;
		MonkText.color = Color.white;
		NecromancerText.color = Color.white;
		PaladinText.color = Color.white;
		RangerText.color = Color.green;
		RogueText.color = Color.white;
		ShadowKnightText.color = Color.white;
		ShamanText.color = Color.white;
		WarriorText.color = Color.white;
		WizardText.color = Color.white;
	}
	public void RogueClick(string param)
	{
		BardText.color = Color.white;
		ClericText.color = Color.white;
		DruidText.color = Color.white;
		EnchanterText.color = Color.white;
		MagicianText.color = Color.white;
		MonkText.color = Color.white;
		NecromancerText.color = Color.white;
		PaladinText.color = Color.white;
		RangerText.color = Color.white;
		RogueText.color = Color.green;
		ShadowKnightText.color = Color.white;
		ShamanText.color = Color.white;
		WarriorText.color = Color.white;
		WizardText.color = Color.white;
	}
	public void ShadowKnightClick(string param)
	{
		BardText.color = Color.white;
		ClericText.color = Color.white;
		DruidText.color = Color.white;
		EnchanterText.color = Color.white;
		MagicianText.color = Color.white;
		MonkText.color = Color.white;
		NecromancerText.color = Color.white;
		PaladinText.color = Color.white;
		RangerText.color = Color.white;
		RogueText.color = Color.white;
		ShadowKnightText.color = Color.green;
		ShamanText.color = Color.white;
		WarriorText.color = Color.white;
		WizardText.color = Color.white;
	}
	public void ShamanClick(string param)
	{
		BardText.color = Color.white;
		ClericText.color = Color.white;
		DruidText.color = Color.white;
		EnchanterText.color = Color.white;
		MagicianText.color = Color.white;
		MonkText.color = Color.white;
		NecromancerText.color = Color.white;
		PaladinText.color = Color.white;
		RangerText.color = Color.white;
		RogueText.color = Color.white;
		ShadowKnightText.color = Color.white;
		ShamanText.color = Color.green;
		WarriorText.color = Color.white;
		WizardText.color = Color.white;
	}
	public void WarriorClick(string param)
	{
		BardText.color = Color.white;
		ClericText.color = Color.white;
		DruidText.color = Color.white;
		EnchanterText.color = Color.white;
		MagicianText.color = Color.white;
		MonkText.color = Color.white;
		NecromancerText.color = Color.white;
		PaladinText.color = Color.white;
		RangerText.color = Color.white;
		RogueText.color = Color.white;
		ShadowKnightText.color = Color.white;
		ShamanText.color = Color.white;
		WarriorText.color = Color.green;
		WizardText.color = Color.white;
	}
	public void WizardClick(string param)
	{
		BardText.color = Color.white;
		ClericText.color = Color.white;
		DruidText.color = Color.white;
		EnchanterText.color = Color.white;
		MagicianText.color = Color.white;
		MonkText.color = Color.white;
		NecromancerText.color = Color.white;
		PaladinText.color = Color.white;
		RangerText.color = Color.white;
		RogueText.color = Color.white;
		ShadowKnightText.color = Color.white;
		ShamanText.color = Color.white;
		WarriorText.color = Color.white;
		WizardText.color = Color.green;
	}
	public void AgnosticClick (string param)
	{
		AgnosticText.color = Color.green;
		BertoxxulousText.color = Color.white;
		BristlebaneText.color = Color.white;
		CazicThuleText.color = Color.white;
		InnoruukText.color = Color.white;
		KaranaText.color = Color.white;
		ErollisiText.color = Color.white;
		MithanielText.color = Color.white;
		RodcetText.color = Color.white;
		PrexusText.color = Color.white;
		QuelliousText.color = Color.white;
		SolusekText.color = Color.white;
		BrellText.color = Color.white;
		TribunalText.color = Color.white;
		TunareText.color = Color.white;
		VeeshanText.color = Color.white;
		RallosText.color = Color.white;
	}
	public void BertoxxulousClick (string param)
	{
		AgnosticText.color = Color.white;
		BertoxxulousText.color = Color.green;
		BristlebaneText.color = Color.white;
		CazicThuleText.color = Color.white;
		InnoruukText.color = Color.white;
		KaranaText.color = Color.white;
		ErollisiText.color = Color.white;
		MithanielText.color = Color.white;
		RodcetText.color = Color.white;
		PrexusText.color = Color.white;
		QuelliousText.color = Color.white;
		SolusekText.color = Color.white;
		BrellText.color = Color.white;
		TribunalText.color = Color.white;
		TunareText.color = Color.white;
		VeeshanText.color = Color.white;
		RallosText.color = Color.white;
	}
	public void BristlebaneClick (string param)
	{
		AgnosticText.color = Color.white;
		BertoxxulousText.color = Color.white;
		BristlebaneText.color = Color.green;
		CazicThuleText.color = Color.white;
		InnoruukText.color = Color.white;
		KaranaText.color = Color.white;
		ErollisiText.color = Color.white;
		MithanielText.color = Color.white;
		RodcetText.color = Color.white;
		PrexusText.color = Color.white;
		QuelliousText.color = Color.white;
		SolusekText.color = Color.white;
		BrellText.color = Color.white;
		TribunalText.color = Color.white;
		TunareText.color = Color.white;
		VeeshanText.color = Color.white;
		RallosText.color = Color.white;
	}
	public void CazicThuleClick (string param)
	{
		AgnosticText.color = Color.white;
		BertoxxulousText.color = Color.white;
		BristlebaneText.color = Color.white;
		CazicThuleText.color = Color.green;
		InnoruukText.color = Color.white;
		KaranaText.color = Color.white;
		ErollisiText.color = Color.white;
		MithanielText.color = Color.white;
		RodcetText.color = Color.white;
		PrexusText.color = Color.white;
		QuelliousText.color = Color.white;
		SolusekText.color = Color.white;
		BrellText.color = Color.white;
		TribunalText.color = Color.white;
		TunareText.color = Color.white;
		VeeshanText.color = Color.white;
		RallosText.color = Color.white;
	}
	public void InnoruukClick (string param)
	{
		AgnosticText.color = Color.white;
		BertoxxulousText.color = Color.white;
		BristlebaneText.color = Color.white;
		CazicThuleText.color = Color.white;
		InnoruukText.color = Color.green;
		KaranaText.color = Color.white;
		ErollisiText.color = Color.white;
		MithanielText.color = Color.white;
		RodcetText.color = Color.white;
		PrexusText.color = Color.white;
		QuelliousText.color = Color.white;
		SolusekText.color = Color.white;
		BrellText.color = Color.white;
		TribunalText.color = Color.white;
		TunareText.color = Color.white;
		VeeshanText.color = Color.white;
		RallosText.color = Color.white;
	}
	public void KaranaClick (string param)
	{
		AgnosticText.color = Color.white;
		BertoxxulousText.color = Color.white;
		BristlebaneText.color = Color.white;
		CazicThuleText.color = Color.white;
		InnoruukText.color = Color.white;
		KaranaText.color = Color.green;
		ErollisiText.color = Color.white;
		MithanielText.color = Color.white;
		RodcetText.color = Color.white;
		PrexusText.color = Color.white;
		QuelliousText.color = Color.white;
		SolusekText.color = Color.white;
		BrellText.color = Color.white;
		TribunalText.color = Color.white;
		TunareText.color = Color.white;
		VeeshanText.color = Color.white;
		RallosText.color = Color.white;
	}
	public void ErollisiClick (string param)
	{
		AgnosticText.color = Color.white;
		BertoxxulousText.color = Color.white;
		BristlebaneText.color = Color.white;
		CazicThuleText.color = Color.white;
		InnoruukText.color = Color.white;
		KaranaText.color = Color.white;
		ErollisiText.color = Color.green;
		MithanielText.color = Color.white;
		RodcetText.color = Color.white;
		PrexusText.color = Color.white;
		QuelliousText.color = Color.white;
		SolusekText.color = Color.white;
		BrellText.color = Color.white;
		TribunalText.color = Color.white;
		TunareText.color = Color.white;
		VeeshanText.color = Color.white;
		RallosText.color = Color.white;
	}
	public void MithanielClick (string param)
	{
		AgnosticText.color = Color.white;
		BertoxxulousText.color = Color.white;
		BristlebaneText.color = Color.white;
		CazicThuleText.color = Color.white;
		InnoruukText.color = Color.white;
		KaranaText.color = Color.white;
		ErollisiText.color = Color.white;
		MithanielText.color = Color.green;
		RodcetText.color = Color.white;
		PrexusText.color = Color.white;
		QuelliousText.color = Color.white;
		SolusekText.color = Color.white;
		BrellText.color = Color.white;
		TribunalText.color = Color.white;
		TunareText.color = Color.white;
		VeeshanText.color = Color.white;
		RallosText.color = Color.white;
	}
	public void RodcetClick (string param)
	{
		AgnosticText.color = Color.white;
		BertoxxulousText.color = Color.white;
		BristlebaneText.color = Color.white;
		CazicThuleText.color = Color.white;
		InnoruukText.color = Color.white;
		KaranaText.color = Color.white;
		ErollisiText.color = Color.white;
		MithanielText.color = Color.white;
		RodcetText.color = Color.green;
		PrexusText.color = Color.white;
		QuelliousText.color = Color.white;
		SolusekText.color = Color.white;
		BrellText.color = Color.white;
		TribunalText.color = Color.white;
		TunareText.color = Color.white;
		VeeshanText.color = Color.white;
		RallosText.color = Color.white;
	}
	public void PrexusClick (string param)
	{
		AgnosticText.color = Color.white;
		BertoxxulousText.color = Color.white;
		BristlebaneText.color = Color.white;
		CazicThuleText.color = Color.white;
		InnoruukText.color = Color.white;
		KaranaText.color = Color.white;
		ErollisiText.color = Color.white;
		MithanielText.color = Color.white;
		RodcetText.color = Color.white;
		PrexusText.color = Color.green;
		QuelliousText.color = Color.white;
		SolusekText.color = Color.white;
		BrellText.color = Color.white;
		TribunalText.color = Color.white;
		TunareText.color = Color.white;
		VeeshanText.color = Color.white;
		RallosText.color = Color.white;
	}
	public void QuelliousClick (string param)
	{
		AgnosticText.color = Color.white;
		BertoxxulousText.color = Color.white;
		BristlebaneText.color = Color.white;
		CazicThuleText.color = Color.white;
		InnoruukText.color = Color.white;
		KaranaText.color = Color.white;
		ErollisiText.color = Color.white;
		MithanielText.color = Color.white;
		RodcetText.color = Color.white;
		PrexusText.color = Color.white;
		QuelliousText.color = Color.green;
		SolusekText.color = Color.white;
		BrellText.color = Color.white;
		TribunalText.color = Color.white;
		TunareText.color = Color.white;
		VeeshanText.color = Color.white;
		RallosText.color = Color.white;
	}
	public void SolusekClick (string param)
	{
		AgnosticText.color = Color.white;
		BertoxxulousText.color = Color.white;
		BristlebaneText.color = Color.white;
		CazicThuleText.color = Color.white;
		InnoruukText.color = Color.white;
		KaranaText.color = Color.white;
		ErollisiText.color = Color.white;
		MithanielText.color = Color.white;
		RodcetText.color = Color.white;
		PrexusText.color = Color.white;
		QuelliousText.color = Color.white;
		SolusekText.color = Color.green;
		BrellText.color = Color.white;
		TribunalText.color = Color.white;
		TunareText.color = Color.white;
		VeeshanText.color = Color.white;
		RallosText.color = Color.white;
	}
	public void BrellClick (string param)
	{
		AgnosticText.color = Color.white;
		BertoxxulousText.color = Color.white;
		BristlebaneText.color = Color.white;
		CazicThuleText.color = Color.white;
		InnoruukText.color = Color.white;
		KaranaText.color = Color.white;
		ErollisiText.color = Color.white;
		MithanielText.color = Color.white;
		RodcetText.color = Color.white;
		PrexusText.color = Color.white;
		QuelliousText.color = Color.white;
		SolusekText.color = Color.white;
		BrellText.color = Color.green;
		TribunalText.color = Color.white;
		TunareText.color = Color.white;
		VeeshanText.color = Color.white;
		RallosText.color = Color.white;
	}
	public void TribunalClick (string param)
	{
		AgnosticText.color = Color.white;
		BertoxxulousText.color = Color.white;
		BristlebaneText.color = Color.white;
		CazicThuleText.color = Color.white;
		InnoruukText.color = Color.white;
		KaranaText.color = Color.white;
		ErollisiText.color = Color.white;
		MithanielText.color = Color.white;
		RodcetText.color = Color.white;
		PrexusText.color = Color.white;
		QuelliousText.color = Color.white;
		SolusekText.color = Color.white;
		BrellText.color = Color.white;
		TribunalText.color = Color.green;
		TunareText.color = Color.white;
		VeeshanText.color = Color.white;
		RallosText.color = Color.white;
	}
	public void TunareClick (string param)
	{
		AgnosticText.color = Color.white;
		BertoxxulousText.color = Color.white;
		BristlebaneText.color = Color.white;
		CazicThuleText.color = Color.white;
		InnoruukText.color = Color.white;
		KaranaText.color = Color.white;
		ErollisiText.color = Color.white;
		MithanielText.color = Color.white;
		RodcetText.color = Color.white;
		PrexusText.color = Color.white;
		QuelliousText.color = Color.white;
		SolusekText.color = Color.white;
		BrellText.color = Color.white;
		TribunalText.color = Color.white;
		TunareText.color = Color.green;
		VeeshanText.color = Color.white;
		RallosText.color = Color.white;
	}
	public void VeeshanClick (string param)
	{
		AgnosticText.color = Color.white;
		BertoxxulousText.color = Color.white;
		BristlebaneText.color = Color.white;
		CazicThuleText.color = Color.white;
		InnoruukText.color = Color.white;
		KaranaText.color = Color.white;
		ErollisiText.color = Color.white;
		MithanielText.color = Color.white;
		RodcetText.color = Color.white;
		PrexusText.color = Color.white;
		QuelliousText.color = Color.white;
		SolusekText.color = Color.white;
		BrellText.color = Color.white;
		TribunalText.color = Color.white;
		TunareText.color = Color.white;
		VeeshanText.color = Color.green;
		RallosText.color = Color.white;
	}
	public void RallosClick (string param)
	{
		AgnosticText.color = Color.white;
		BertoxxulousText.color = Color.white;
		BristlebaneText.color = Color.white;
		CazicThuleText.color = Color.white;
		InnoruukText.color = Color.white;
		KaranaText.color = Color.white;
		ErollisiText.color = Color.white;
		MithanielText.color = Color.white;
		RodcetText.color = Color.white;
		PrexusText.color = Color.white;
		QuelliousText.color = Color.white;
		SolusekText.color = Color.white;
		BrellText.color = Color.white;
		TribunalText.color = Color.white;
		TunareText.color = Color.white;
		VeeshanText.color = Color.white;
		RallosText.color = Color.green;
	}
	public void ErudinClick(string param)
	{
		ErudinText.color = Color.green;
		QeynosText.color = Color.white;
		HalasText.color = Color.white;
		RivervaleText.color = Color.white;
		FreeportText.color = Color.white;
		NeriakText.color = Color.white;
		GrobbText.color = Color.white;
		OggokText.color = Color.white;
		KaladimText.color = Color.white;
		KelethinText.color = Color.white;
		FelwitheText.color = Color.white;
		AkanonText.color = Color.white;
		CabilisText.color = Color.white;
	}
	public void QeynosClick(string param)
	{
		ErudinText.color = Color.white;
		QeynosText.color = Color.green;
		HalasText.color = Color.white;
		RivervaleText.color = Color.white;
		FreeportText.color = Color.white;
		NeriakText.color = Color.white;
		GrobbText.color = Color.white;
		OggokText.color = Color.white;
		KaladimText.color = Color.white;
		KelethinText.color = Color.white;
		FelwitheText.color = Color.white;
		AkanonText.color = Color.white;
		CabilisText.color = Color.white;
	}
	public void HalasClick(string param)
	{
		ErudinText.color = Color.white;
		QeynosText.color = Color.white;
		HalasText.color = Color.green;
		RivervaleText.color = Color.white;
		FreeportText.color = Color.white;
		NeriakText.color = Color.white;
		GrobbText.color = Color.white;
		OggokText.color = Color.white;
		KaladimText.color = Color.white;
		KelethinText.color = Color.white;
		FelwitheText.color = Color.white;
		AkanonText.color = Color.white;
		CabilisText.color = Color.white;
	}
	public void RivervaleClick(string param)
	{
		ErudinText.color = Color.white;
		QeynosText.color = Color.white;
		HalasText.color = Color.white;
		RivervaleText.color = Color.green;
		FreeportText.color = Color.white;
		NeriakText.color = Color.white;
		GrobbText.color = Color.white;
		OggokText.color = Color.white;
		KaladimText.color = Color.white;
		KelethinText.color = Color.white;
		FelwitheText.color = Color.white;
		AkanonText.color = Color.white;
		CabilisText.color = Color.white;
	}
	public void FreeportClick(string param)
	{
		ErudinText.color = Color.white;
		QeynosText.color = Color.white;
		HalasText.color = Color.white;
		RivervaleText.color = Color.white;
		FreeportText.color = Color.green;
		NeriakText.color = Color.white;
		GrobbText.color = Color.white;
		OggokText.color = Color.white;
		KaladimText.color = Color.white;
		KelethinText.color = Color.white;
		FelwitheText.color = Color.white;
		AkanonText.color = Color.white;
		CabilisText.color = Color.white;
	}
	public void NeriakClick(string param)
	{
		ErudinText.color = Color.white;
		QeynosText.color = Color.white;
		HalasText.color = Color.white;
		RivervaleText.color = Color.white;
		FreeportText.color = Color.white;
		NeriakText.color = Color.green;
		GrobbText.color = Color.white;
		OggokText.color = Color.white;
		KaladimText.color = Color.white;
		KelethinText.color = Color.white;
		FelwitheText.color = Color.white;
		AkanonText.color = Color.white;
		CabilisText.color = Color.white;
	}
	public void GrobbClick(string param)
	{
		ErudinText.color = Color.white;
		QeynosText.color = Color.white;
		HalasText.color = Color.white;
		RivervaleText.color = Color.white;
		FreeportText.color = Color.white;
		NeriakText.color = Color.white;
		GrobbText.color = Color.green;
		OggokText.color = Color.white;
		KaladimText.color = Color.white;
		KelethinText.color = Color.white;
		FelwitheText.color = Color.white;
		AkanonText.color = Color.white;
		CabilisText.color = Color.white;
	}
	public void OggokClick(string param)
	{
		ErudinText.color = Color.white;
		QeynosText.color = Color.white;
		HalasText.color = Color.white;
		RivervaleText.color = Color.white;
		FreeportText.color = Color.white;
		NeriakText.color = Color.white;
		GrobbText.color = Color.white;
		OggokText.color = Color.green;
		KaladimText.color = Color.white;
		KelethinText.color = Color.white;
		FelwitheText.color = Color.white;
		AkanonText.color = Color.white;
		CabilisText.color = Color.white;
	}
	public void KaladimClick(string param)
	{
		ErudinText.color = Color.white;
		QeynosText.color = Color.white;
		HalasText.color = Color.white;
		RivervaleText.color = Color.white;
		FreeportText.color = Color.white;
		NeriakText.color = Color.white;
		GrobbText.color = Color.white;
		OggokText.color = Color.white;
		KaladimText.color = Color.green;
		KelethinText.color = Color.white;
		FelwitheText.color = Color.white;
		AkanonText.color = Color.white;
		CabilisText.color = Color.white;
	}
	public void KelethinClick(string param)
	{
		ErudinText.color = Color.white;
		QeynosText.color = Color.white;
		HalasText.color = Color.white;
		RivervaleText.color = Color.white;
		FreeportText.color = Color.white;
		NeriakText.color = Color.white;
		GrobbText.color = Color.white;
		OggokText.color = Color.white;
		KaladimText.color = Color.white;
		KelethinText.color = Color.green;
		FelwitheText.color = Color.white;
		AkanonText.color = Color.white;
		CabilisText.color = Color.white;
	}
	public void FelwitheClick(string param)
	{
		ErudinText.color = Color.white;
		QeynosText.color = Color.white;
		HalasText.color = Color.white;
		RivervaleText.color = Color.white;
		FreeportText.color = Color.white;
		NeriakText.color = Color.white;
		GrobbText.color = Color.white;
		OggokText.color = Color.white;
		KaladimText.color = Color.white;
		KelethinText.color = Color.white;
		FelwitheText.color = Color.green;
		AkanonText.color = Color.white;
		CabilisText.color = Color.white;
	}
	public void AkanonClick(string param)
	{
		ErudinText.color = Color.white;
		QeynosText.color = Color.white;
		HalasText.color = Color.white;
		RivervaleText.color = Color.white;
		FreeportText.color = Color.white;
		NeriakText.color = Color.white;
		GrobbText.color = Color.white;
		OggokText.color = Color.white;
		KaladimText.color = Color.white;
		KelethinText.color = Color.white;
		FelwitheText.color = Color.white;
		AkanonText.color = Color.green;
		CabilisText.color = Color.white;
	}
	public void CabilisClick(string param)
	{
		ErudinText.color = Color.white;
		QeynosText.color = Color.white;
		HalasText.color = Color.white;
		RivervaleText.color = Color.white;
		FreeportText.color = Color.white;
		NeriakText.color = Color.white;
		GrobbText.color = Color.white;
		OggokText.color = Color.white;
		KaladimText.color = Color.white;
		KelethinText.color = Color.white;
		FelwitheText.color = Color.white;
		AkanonText.color = Color.white;
		CabilisText.color = Color.green;
	}





	// Use this for initialization
	void Start ()
	{
		setupBtn ();
		WoodElfText.color = Color.green;


	}	

	// Update is called once per frame
	void Update ()
	{
	}
}

Raw Paste Data