private void Awake() { // Init network manager _nw = GetComponent<MyNetManager>(); _nw.networkAddress = LOCAL_IP; _nw.networkPort = PORT; _nd = GetComponent<MyNetDiscovery>(); }
void Start() { instance = this; Initialize(); }