initial
This commit is contained in:
1 parent
75fa7ab38c
commit
c9424320ae
1425 files changed
+484748
-5
No files matched your search
@@ -0,0 +1,30 @@
|
||||
using UnityEngine;
|
||||
using UnityEngine.XR.Interaction.Toolkit.Interactables;
|
||||
|
||||
public class MaterialRopeDetachAction : MonoBehaviour
|
||||
{
|
||||
Vector3 InitialCords;
|
||||
Quaternion InitialRotation;
|
||||
|
||||
|
||||
// Start is called once before the first execution of Update after the MonoBehaviour is created
|
||||
void Start()
|
||||
{
|
||||
InitialCords = transform.position;
|
||||
InitialRotation = gameObject.transform.rotation;
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public void reset()
|
||||
{
|
||||
transform.position = InitialCords;
|
||||
transform.rotation = InitialRotation;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user