title: struct inaccessible due to its protection level
body: <p>I have declared a private struct inside a class.</p>
  
  <p>When I try to use it, the compiler raises the error </p>
  
  <pre><code>struct inaccessible due to its protection level
  </code></pre>
  
  <p>This is the C# code:</p>
  
  <pre><code>using System.Collections;
  using System.Collections.Generic;
  using UnityEngine;
  using UnityEngine.UI;
  using UnityEngine.EventSystems;
  
  public class HUDanimator : MonoBehaviour
  {
      private struct udtThis
      {
          Color col1;
          Color col2;
          float wait;
          float fade;
      }
  
      private udtThis[] m = new udtThis[2];
  
      void Start()
      {
          udtThis n; //raises the compiler error
          n.wait = 0f; 
  </code></pre>
  
  <p>What am I doing wrong here?</p>
  
  <p>Thank you.</p>