예제 #1
0
        public IEnumerator FireRandomTeethAndWaitForFinish()
        {
            int randomChildIndex = Random.Range(1, Teeth.Length);

            _contextToothSpriteRenderer = Teeth[randomChildIndex];
            _contextLaserPoint          = LaserPoints[randomChildIndex];
            _originalTeethColor         = _contextToothSpriteRenderer.color;

            yield return(TeethFireProcedure());
        }