Beispiel #1
0
 public void UpdateTabs()
 {
     foreach (GameObject tab in charTabList)
     {
         CharacterTab tabby = tab.GetComponent <CharacterTab>();
         tabby.UpdateInfo();
         spellbuttons.DisableButtonsIfNotAp();
     }
 }
 public void AddTabEffect(EffectValues effect, CharacterValues target)
 {
     foreach (GameObject tab in charTabList)
     {
         CharacterTab tabby = tab.GetComponent <CharacterTab>();
         if (tabby.characterVal == target)
         {
             tabby.AddEffectIcon(effect);
         }
     }
 }
Beispiel #3
0
 ////////////public void AddTabEffect(EffectValues effect, CharacterValues target)
 ////////////{
 ////////////    foreach (GameObject tab in charTabList)
 ////////////    {
 ////////////        CharacterTab tabby = tab.GetComponent<CharacterTab>();
 ////////////        if (tabby.characterVal == target)
 ////////////        {
 ////////////            tabby.AddEffectIcon(effect);
 ////////////        }
 ////////////    }
 ////////////}
 public CharacterTab GetTab(CharacterValues character)
 {
     foreach (GameObject tab in charTabList)
     {
         CharacterTab tabby = tab.GetComponent <CharacterTab>();
         if (tabby.characterVal == character)
         {
             return(tabby);
         }
     }
     Debug.Log("No tab found");
     return(null);
 }