title: Get types used inside a specific class
body: <p>Here's the class, which I want to get a list of all types used in it:</p>
  
  <pre><code>public class TestClass : MonoBehaviour{
      private UIManager _manager;
  
      private void Initialize(UIManager manager){
          _manager = manager;
      }
  }
  </code></pre>
  
  <p>Then I thought that by running something like this:</p>
  
  <pre><code>    Assembly assembly = typeof (TestClass).Assembly;
      foreach (Type type in assembly.GetTypes()){
          Debug.Log(type.FullName);
      }
  </code></pre>
  
  <p>Would give me just the UIManager type. But instead it seems like it's giving me the list of all types used on my project.</p>
  
  <p>How can I get just the types used on this class? </p>
  
  <p>(as you can see TestClass inherits from MonoBehaviour, but I don't want the types used there, I want the types used specifically in TestClass).</p>