111
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
using UnityEngine;
|
||||
|
||||
class CopyTransform : MonoBehaviour
|
||||
{
|
||||
[SerializeField] private Transform origin;
|
||||
|
||||
void Update()
|
||||
{
|
||||
transform.position = origin.position;
|
||||
transform.rotation = origin.rotation;
|
||||
}
|
||||
|
||||
public void SetOrigin(Transform value)
|
||||
{
|
||||
origin = value;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user