[Add] Unitask
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user