title: how to make that only certain class can access a class
body: <p>What I want to do is forbidding SomeRandom class accessing Protected class</p>
  
  <pre><code>public class CertainClass {
      public void CerFunc(){
          ProtectedClass.ProtectedFunction();
      }
  }
  public class ProtectedClass {
      public static void ProtectedFunction(){
          Debug.Log("Protected");
      }
  }
  public class SomeRandomClass {
      public void RandFunc(){
          ProtectedClass.ProtectedFunction(); // innaccessible due to protection level
      }
  }
  </code></pre>
  
  <p>what do I have to change in order to make that work?</p>
  
  <p>Preferably Static, because I need and want it only 1.</p>