[Add] Unitask

This commit is contained in:
horooko committed 2026-02-28 19:33:34 +07:00
1 parent e24b30743b
commit 159cfd49a9
341 files changed
+72787 -10

No files matched your search

+4 -4
View File
@@ -52,7 +52,7 @@ namespace YachtDice.Dice
/// </summary>
public bool IsRolling { get; private set; }
private Coroutine rollRoutine;
private Coroutine _rollRoutine;
private void Reset()
{
@@ -68,10 +68,10 @@ namespace YachtDice.Dice
{
if (IsRolling) return;
if (rollRoutine != null)
StopCoroutine(rollRoutine);
if (_rollRoutine != null)
StopCoroutine(_rollRoutine);
rollRoutine = StartCoroutine(RollSequence());
_rollRoutine = StartCoroutine(RollSequence());
}
private IEnumerator RollSequence()