Beispiel #1
0
    public override string GetInteractionPrompt()
    {
        if (!IsLocked())
        {
            if (m_Open)
            {
                interactionPrompt = isOpenInteractionPrompt;
            }
            else
            {
                interactionPrompt = isClosedInteractionPrompt;
            }
        }
        else
        {
            interactionPrompt = isLockedInteractionPrompt;

            if (m_PlayerController != null)
            {
                if (m_PlayerController.HasKey(keyType))
                {
                    interactionPrompt = unlockInteractionPrompt;
                }
            }
        }

        return(interactionPrompt);
    }