Advertisement
Guest User

Untitled

a guest
Oct 14th, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4.  
  5. public class FollowInversePosition : MonoBehaviour {
  6. public Transform target;
  7.  
  8. void Update ()
  9. {
  10. transform.localPosition = new Vector3(-target.localPosition.x, -target.localPosition.y, -target.localPosition.z);
  11. }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement