1
This commit is contained in:
@@ -133,9 +133,7 @@ public class GrabItem : MonoBehaviour
|
|||||||
{
|
{
|
||||||
if (other.gameObject.CompareTag("RightHand"))
|
if (other.gameObject.CompareTag("RightHand"))
|
||||||
{
|
{
|
||||||
|
|
||||||
SceneMgr.Instance.isTrigger = false;
|
SceneMgr.Instance.isTrigger = false;
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
private void OnTriggerStay(Collider other)
|
private void OnTriggerStay(Collider other)
|
||||||
@@ -190,8 +188,7 @@ public class GrabItem : MonoBehaviour
|
|||||||
{
|
{
|
||||||
if (childAnimator != null)
|
if (childAnimator != null)
|
||||||
{
|
{
|
||||||
Destroy(childAnimator);
|
childAnimator.transform.localScale = Vector3.zero;
|
||||||
childAnimator = null;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user