- Home /
Delay copy of transform position?
hey! i have this script here:
  using UnityEngine;
   using System.Collections;
   
   public class Copyposition : MonoBehaviour
   {
       public Transform itsTarget;
   
       void Update ()
       {
           transform.position = new Vector3(itsTarget.position.x, 0 ,itsTarget.position.z);
       }
   }
which copies the x and z value of another game object. how can i delay the update of the position for around half a second? so that the gameobject with this script is at itsTarget position where this was half a second ago?
               Comment
              
 
               
              Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                