private void Awake() { var obj = new GameObject("UPD Manager"); _udpManager = obj.AddComponent <UdpManager>(); obj.transform.parent = transform; _udpManager.AddCallback(UdpCallbackHandler); }