private Dictionary <string, UnityEventBool> IdentifierToReactionEvents = new Dictionary <string, UnityEventBool>(); // Dictionary of reaction events /// <summary> /// Primary method of interactable. This method performs the operations to /// model interaction. This method specifically triggers the various appropriate /// events and reactions. /// </summary> /// <param name="reactionDescription">Description of intended reaction collection to process.</param> public void InteractWithReaction(string reactionDescription) { // Trigger sensor-related events if (OnInteractEvent != null) { OnInteractEvent(); } if (OnStartInteractEvent != null) { OnStartInteractEvent(1f); } // React specific if the description is not empty if (Reactions) { if (!reactionDescription.Equals("")) { Reactions.ReactSpecific(reactionDescription); } } }