Derek-R-S/Light-Reflective-Mirror

ConnectedToRelay is registered too late

Closed this issue · 1 comments

Latest change breaks connecting to relay:
```
private void OnEnable()
{
clientToServerTransport.OnClientConnected = ConnectedToRelay;
...


If I have "Connect on Awake" checked then `ConnectToRelay()` is called before `OnEnable()` so `ConnectedToRelay()` is never called and LRMTransport doesn't know it was actually connected(_connectedToRelay remains false).

Been fixed, just forgot to close issue.