public void AddRandomTorqueToSelectedDices(ref List <GameObject> dices) { foreach (GameObject dice in dices) { Dice script = dice.GetComponent <Dice>(); if (script.IsSelected()) { script.AddRandomTorque(); } } }
public void AddRandomTorqueToSelectedDices(ref List <GameObject> dices) { foreach (GameObject dice in dices) { Dice script = dice.GetComponent <Dice>(); if (script.IsSelected()) { script.AddRandomTorque(); } } }