Ejemplo n.º 1
0
    public string GetInteractableQuip(GameObject worldObject, string clickedApp)
    {
        foreach (var thing in Interactables)
        {
            if (thing == worldObject)
            {
                switch (clickedApp)
                {
                case "Camera":
                    return(m_reactions.GetQuip(Reactions.Verb.Photograph, (Reactions.Item)AppToItem(thing.name)));

                case "Recorder":
                    return(m_reactions.GetQuip(Reactions.Verb.Record, (Reactions.Item)AppToItem(thing.name)));

                case "Light":
                    return(m_reactions.GetQuip(Reactions.Verb.Photograph, (Reactions.Item)AppToItem(thing.name)));

                case "Pay":
                    return(m_reactions.GetQuip(Reactions.Verb.Photograph, (Reactions.Item)AppToItem(thing.name)));
                }
            }
        }
        return(null);
    }