Example #1
0
    public void InteractWithObject(Interaction interactionType)
    {
        switch (interactionType)
        {
        case Interaction.Inspect:
            print(tempInteractObjectReference.InspectObject());
            break;

        case Interaction.Interact:
            tempInteractObjectReference.InteractWithObject();
            break;

        case Interaction.PickUp:
            tempInteractObjectReference.PickUpObject();
            break;

        default:
            Debug.Log("No case in switch statement");
            break;
        }
    }