Пример #1
0
 // Update is called once per frame
 void Update()
 {
     if (isMoving == 1)
     {
         if (transform.position == targetPositionTable)
         {
             isMoving = 0;
             textScript.MakeVisible(true);
         }
         else
         {
             transform.position = Vector3.MoveTowards(transform.position, targetPositionTable, speed * Time.deltaTime);
         }
     }
 }