예제 #1
0
    public void HoldObject(PickUp holdObject)
    {
#if UNITY_ANDROID
        releaseButton.SetActive(true);
#endif
        holdGraphicObject = GameObject.Instantiate(holdObject.portalPhysicsObject.graphicsObject, graphicsObject.transform);
        holdGraphicObject.transform.localPosition = new Vector3(0.6f, -0.4f, 1);
        holdObject.Hold(this);
        if (graphicsClone != null && graphicsClone.activeInHierarchy)
        {
            EnterPortalThreshold();
        }
    }