Advertisement
Guest User

ChildStopRotator

a guest
Dec 12th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.26 KB | None | 0 0
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4.  
  5. public class ChildStopRotator : MonoBehaviour {
  6.  
  7.     public Transform parents;
  8.     public Vector3 offset;
  9.  
  10.     void Update () {
  11.         transform.position = parents.position + offset;
  12.     }
  13.  
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement