Example #1
0
    void AddDieToTeam(BattleTeam team, Die die)
    {
        var battleDie = team.TryAddDie(die, _UI.FindDie(die));

        if (battleDie != null)
        {
            battleDie.LandedOnFace += OnDieLandedOnFace;

            Debug.Log($"<color=blue>{team.Name} has a new member: {die.name} of type {die.dieType} ({team.Dice.Count}/{BattleTeam.RequiredNumberOfDices})</color>");
            CancelBattle(BattleCancelledReason.DieJoined);
        }
    }