title: How can I check that if a specific name is taking part of a conversation then enable true if not false?
body: <pre><code>using System.Collections;
  using System.Collections.Generic;
  using UnityEngine;
  
  public class PlayerLockState : MonoBehaviour
  {
      public Camera playerCamera;
      public camMouseLook mouselook;
      public Conversation conversation;
      public ConversationTrigger conversationtrigger;
  
      // Start is called before the first frame update
      void Start()
      {
  
      }
  
      // Update is called once per frame
      void Update()
      {
          if (playerCamera.enabled == false ||
              conversationtrigger.conversationEnd == false)
          {
              PlayerController.disablePlayerController = true;
  
              if (conversation.Dialogues.Count &gt; 0)
              {
                  for (int i = 0; i &lt; conversation.Dialogues.Count; i++)
                  {
                      if (conversation.Dialogues[i].Name == "Navi")
                      {
                          mouselook.enabled = true;
                      }
                      else
                      {
                          mouselook.enabled = false;
                      }
                  }
              }
  
              transform.Rotate(new Vector3(0, 0, 0));
          }
          else
          {
              PlayerController.disablePlayerController = false;
              mouselook.enabled = true;
          }
      }
  }
  </code></pre>
  
  <p>At this part I'm checking if the specific name is taking part of a conversation:</p>
  
  <pre><code>if (conversation.Dialogues.Count &gt; 0)
              {
                  for (int i = 0; i &lt; conversation.Dialogues.Count; i++)
                  {
                      if (conversation.Dialogues[i].Name == "Navi")
                      {
                          mouselook.enabled = true;
                      }
                      else
                      {
                          mouselook.enabled = false;
                      }
                  }
              }
  </code></pre>
  
  <p>If the player is taking part of a conversation, set mouselook to true, if not, set the mouselook to false. But when set to false, I also want to check if the:</p>
  
  <pre><code>playerCamera.enabled == false
  </code></pre>
  
  <p>The mouselook should be false only if the playerCamera is also false.
  And the mouselook should be true only if Navi is part of the conversation even if the playerCamera is false.</p>