void SwitchPosition(MovableInteractable pObject) { transform.position = pObject.transform.position; putLocation = pObject.putLocation; putLocation.gameObject.SetActive(false); _isHolding = false; pObject.GetComponent <MovableInteractable>().putLocation = null; pObject.GetComponent <MovableInteractable>().SetModeHolding(); }
void DoLockInteraction() { if (!holdingObject.GetComponent <Key>()) { return; } holdingObject.GetComponent <Key>().Unlock(); hooverObject.GetComponent <Lock>().Unlock(); holdingObject = null; }