Exemple #1
0
 void Update()
 {
     tPos = Vector3.Lerp(tPos, target.position, Time.deltaTime * smoothLookSpeed);
     lightRef.LookAt(tPos);
 }
Exemple #2
0
 void Update()
 {
     tPos = Vector3.MoveTowards(tPos, new Vector3(0, position, 0), Time.deltaTime * 25f);
     l.LookAt(tPos);
 }