コード例 #1
0
        private void OnMouseUpAsButton()
        {
            if (dontRead)
            {
                return;
            }

            if (Item == null)
            {
                Use(InteractionManager.objectUsing);
            }
            else
            {
                if (InteractionManager.objectUsing != null)
                {
                    Use(InteractionManager.objectUsing);

                    return;
                }

                if (Item.canBePickedUp)
                {
                    clickedObjectDisplay.DisplayObject(Item, gameObject);
                }
                else
                {
                    cutSceneManager.DisplayMessage(Item.description);
                }
            }
        }
コード例 #2
0
    private void DisplayMessage()
    {
        cutSceneManager.DisplayMessage(onLoadLevelMessage);

        onLoadLevelMessage = string.Empty;
    }