Exemple #1
0
    private Character BuildCharacter(CharInfo charInfo, Transform initialSlot, bool isHero)
    {
        DivineDebug.Log("Building character " + charInfo.moniker.ToString() + " .");

        if (isHero)
        {
            return(HeroBuilder.Build(charInfo as HeroInfo, this, initialSlot.position, initialSlot.rotation));
        }
        else
        {
            return(CharBuilder.Build(charInfo, this, initialSlot.position, initialSlot.rotation));
        }
    }