| New file |
| | |
| | | using System.Collections; |
| | | using System.Collections.Generic; |
| | | using UnityEngine; |
| | | |
| | | public class SyncTargetPos : MonoBehaviour |
| | | { |
| | | public Transform target; |
| | | |
| | | // Update is called once per frame |
| | | void Update() |
| | | { |
| | | if (target) |
| | | { |
| | | transform.position = target.position; |
| | | } |
| | | } |
| | | } |
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: b04ecd0881278cc4bad0070cb1d06457 |
| | | timeCreated: 1542595938 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |