What i want to do here is when my 1st object is exactly in the position of my 2nd object, the 2nd object will move from the previous position of the 1st object…
kinda stuck in here…
function Update ()
{
PositionChanging();
}
function PositionChanging ()
{
if(c1.transform.position==c2.transform.position){
var positionA : Vector3 = new Vector3(-1.5, 2, -4.704057);
newPosition = positionA;
c2.transform.position = Vector3.Lerp(transform.position, newPosition, Time.deltaTime);
}
}