Beispiel #1
0
    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();
    }
Beispiel #2
0
    void DoLockInteraction()
    {
        if (!holdingObject.GetComponent <Key>())
        {
            return;
        }

        holdingObject.GetComponent <Key>().Unlock();
        hooverObject.GetComponent <Lock>().Unlock();

        holdingObject = null;
    }