Example #1
0
 public void SelectCharacter(Character character)
 {
     // TODO make CharacterSelectButton with this character highlighted (but unselectable)
     CurrentChar = character;
     foreach (Transform child in characterSelectPanel)
     {
         child.GetComponent <CharacterSelectButton>().CharacterSelected(character);
     }
     foreach (StatDisplay stat in statDisplays)
     {
         stat.character = CurrentChar;
     }
     DisplayCharacter();
     UpdateEquipment();
 }
    public void BossBattleEnd()
    {
        //TODO heal mage, remove other party members, go to other scene
        //SceneLoader.Instance.LoadScene("03 Forest Path"); // change this around

        // HACK figure out nicer way to do this, especially finding the wizard
        RPGsys.Character[] characters = GameController.Instance.Characters;
        foreach (RPGsys.Character character in characters)
        {
            GameObject.Destroy(character.gameObject);
        }
        // TODO change wizard portrait
        // maybe totally replace wizard with undead wizard?
        // empty inventory and remove all items
        GameController.Instance.inventory.Clear();
        RPGsys.Character newMage = Utility.InstantiateSameName <RPGsys.Character>(undeadWizardPrefab);
        newMage.transform.SetParent(GameController.Instance.playerTeam.transform);
    }