Esempio n. 1
0
        private IEnumerator TeethFireProcedure()
        {
            _startToothPosition = _contextToothSpriteRenderer.transform.position;
            _endToothPosition   = new Vector2(_startToothPosition.x, _startToothPosition.y + (IsUpperJaw ? 1 : -1) * ToothMoveDistance);

            yield return(MoveToothAndWaitForFinish(true));

            yield return(new WaitForSeconds(PauseTime));

            yield return(_contextLaserPoint.FireLazerCycle());

            yield return(new WaitForSeconds(PauseTime));

            yield return(MoveToothAndWaitForFinish(false));
        }