コード例 #1
0
    public void RollComplete(DiceController die, TextMesh label, TextMesh labelShort, int position)
    {
        Element e = die.GetElement();

        labelShort.text = e.GetName();

        label.text = e.GetName() + "\nDmg:\n" + e.GetDamage(position).ToString(formatString)
                + "\nAcc:\n" + e.GetAccuracy(position).ToString(formatString)
                + "\nSpeed:\n" + e.GetSpeed(position).ToString(formatString)
                + "\nDie Summary:\n(" + die.GetDieName() + ")";

        dmg += e.GetDamage(position);
        acc += e.GetAccuracy(position);
        speed += e.GetSpeed(position);
        complete++;

        if(complete==3)
        {
            opponentAttack.SetOpponentSpeed(speed);
            if(opponentSpeed!=null) DoAttack();
        }
    }