예제 #1
0
 private void Appear()
 {
     gameObject.transform.localScale = HelperFuctions.ScaleVector(gameObject.transform.localScale, Time.deltaTime / minScale / scaleTime);
     if (gameObject.transform.localScale.x >= nativeScale.x)
     {
         gameObject.transform.localScale = nativeScale;
         state          = bubbleState.there;
         thereStartTime = Time.time;
     }
 }
예제 #2
0
        private void Disappear()
        {
            gameObject.transform.localScale = HelperFuctions.ScaleVector(gameObject.transform.localScale, 1 / (Time.deltaTime / minScale / scaleTime));
            if (gameObject.transform.localScale.x <= nativeScale.x * minScale)
            {
                gameObject.transform.localScale = HelperFuctions.ScaleVector(nativeScale, minScale);
                state = bubbleState.idle;
                gameObject.SetActive(false);

                if (nextTextQueued)
                {
                    Show(nextText);
                    nextTextQueued = false;
                }
            }
        }