[Fix] Refactor project
This commit is contained in:
@@ -95,8 +95,11 @@ namespace YachtDice.UI
|
||||
|
||||
private void OnDestroy()
|
||||
{
|
||||
for (int i = 0; i < diceButtons.Length; i++)
|
||||
diceButtons[i].onClick.RemoveAllListeners();
|
||||
for (var index = 0; index < diceButtons.Length; index++)
|
||||
{
|
||||
var t = diceButtons[index];
|
||||
t.onClick.RemoveAllListeners();
|
||||
}
|
||||
|
||||
rollButton.onClick.RemoveAllListeners();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user