public virtual void doAction(InteractionType interaction) { switch (interaction) { case InteractionType.Examine: //player.GetComponent<PlayerInputScript>().enableExamineObjectText(data.examineText); GameManagerScript.gameManager.conversationUI.GetComponent <ConversationScript>().examineActor(data, true); break; case InteractionType.Use: Debug.Log("Object Used"); break; case InteractionType.PickUp: PlayerInputScript playerScript = GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerInputScript>(); playerScript.stopHighlightingWorldObject(this); GetComponent <PickUpObjectScript>().addItemToInventory(); break; case InteractionType.GoTo: GetComponent <GoToNewAreaTriggerScript>().goToNewArea(); break; case InteractionType.Separate: GameManagerScript.gameManager.separateActor(this); break; } }