Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static class ComponentX
- {
- public static void Log(this Component component, string msg)
- {
- Debug.Log(msg + " called from: " + component);
- }
- }
- public class Game : MonoBehaviour
- {
- void Start()
- {
- this.Log("Hello");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement