Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. public static class ComponentX
  2. {
  3. public static void Log(this Component component, string msg)
  4. {
  5. Debug.Log(msg + " called from: " + component);
  6. }
  7. }
  8.  
  9. public class Game : MonoBehaviour
  10. {
  11. void Start()
  12. {
  13. this.Log("Hello");
  14. }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement