Ejemplo n.º 1
0
    private IEnumerator ProcessingActivitieCoroutine()
    {
        while (_timeState >= 0)
        {
            TimerLabel.text = _timeState.ToString();
            if (_timeState > 0)
            {
                yield return(new WaitForSecondsRealtime(1f));
            }

            if (_pause)
            {
                continue;
            }
            _timeState--;
        }

        State = PipeStates.Used;
    }
Ejemplo n.º 2
0
 protected override bool IsEnebledForRotateState(PipeStates state)
 {
     return(state == PipeStates.Waiting || state == PipeStates.Processing);
 }
Ejemplo n.º 3
0
 protected virtual bool IsEnebledForRotateState(PipeStates state)
 {
     return(state == PipeStates.Waiting);
 }