Exemplo n.º 1
0
    private void cmdRequestDieRoll()
    {
        RollDie die = FindObjectOfType <RollDie>();

        die.StartCoroutine(die.RollRandom());
        StartCoroutine(updateDie(die.transform.GetChild(0).gameObject));
    }
    public void RollTheDie(Vector2 pDieTossValues)
    {
        RollDie die = FindObjectOfType <RollDie>();

        die.StartCoroutine(die.RollWithValues(pDieTossValues));
    }