Esempio n. 1
0
 private void HandleTurnChange(PlayerInfo player)
 {
     currentCharacter = player.thisCharacter;
     if (currentCharacter == null)
     {
         Debug.Log("current char failed");
     }
 }
Esempio n. 2
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);
 }