void Awake() { instance = this; s_selectBorder = transform.Find("Panel").Find("Select").GetComponent <UISprite>(); l_gold = transform.Find("Panel").Find("L_Gold").GetComponent <UILabel>(); l_grudge = transform.Find("Panel").Find("L_Grudge").GetComponent <UILabel>(); l_level = transform.Find("Panel").Find("L_Level").GetComponent <UILabel>(); l_units = transform.Find("Panel").Find("L_Units").GetComponent <UILabel>(); s_ports[0] = transform.Find("Panel").Find("Port1").GetComponent <UISprite>(); s_ports[1] = transform.Find("Panel").Find("Port2").GetComponent <UISprite>(); s_ports[2] = transform.Find("Panel").Find("Port3").GetComponent <UISprite>(); s_ports[3] = transform.Find("Panel").Find("Port4").GetComponent <UISprite>(); s_ports[4] = transform.Find("Panel").Find("Port5").GetComponent <UISprite>(); l_health = transform.Find("Panel").Find("Healthbar Boss").Find("Boss Health").GetComponent <UILabel>(); l_mana = transform.Find("Panel").Find("Manabar Boss").Find("Boss Mana").GetComponent <UILabel>(); s_health = transform.Find("Panel").Find("Healthbar Boss").GetComponent <UISlider>(); s_mana = transform.Find("Panel").Find("Manabar Boss").GetComponent <UISlider>(); l_bossLabel = transform.Find("Panel").Find("Boss Label").GetComponent <UILabel>(); }
void onClick() { Bottombar bB = transform.parent.parent.GetComponent <Bottombar>(); bB.selectMob(index); }