title: Getting object which called function we are in using c#
body: <p>Is it possible to get a proper reference to object that called our static method?</p>
  
  <p>I call a static method from many places in Unity project and I'd like to pass a <code>gameObject</code> to context in <code>UnityEngine.Debug.Log(object message, Object context)</code> for easier debugging with Unity console. I already tried with <code>System.Diagnostics.StackTrace</code> class and found nothing but strings which aren't useful.</p>
  
  <p>edit:
  Here's a code similar to what i need to achieve:</p>
  
  <pre><code>public static class DebuggingHelper {
      public static void LogText() {
          var callingObject = SomeStaticReflectionClasss.INeedToGetItSomehowHere();
          if(callingObject is UnityEngine.Object)
              UnityEngine.Debug.Log("Good morning", callingObject as UnityEngine.Object)
      }
  }
  </code></pre>