void Start() { inOrderChallenge = FindObjectOfType <InOrderChallenge> (); challengeText = FindObjectOfType <ChallengeText> (); soundController = FindObjectOfType <SoundController> (); challengeSource = FindObjectOfType <AudioSource> (); countdown = FindObjectOfType <Countdown>(); ws = new WebSocket("ws://192.168.43.141"); ws.OnMessage += (sender, e) => NewMessage(e.Data); ws.OnError += (sender, i) => print("Error "); ws.OnOpen += (sender, c) => print("Open "); ws.OnClose += (sender, j) => print("Close " + j.Reason + " " + j.Code); print("local ip = " + LocalIPAddress()); // GetComponent<NetworkDiscovery> ().Initialize (); // GetComponent<NetworkDiscovery> ().StartAsClient (); // GetComponent<NetworkDiscovery> ().OnReceivedBroadcast ("ws://192.168.43.37", ); // for (int i = 0; i < GetComponent<NetworkDiscovery> ().broadcastsReceived.Keys.Count; i++) // { // print (GetComponent<NetworkDiscovery> ().broadcastsReceived.Keys); // } ws.Connect(); }
void ReleaseDesignerOutlets() { if (btnTopNotify != null) { btnTopNotify.Dispose(); btnTopNotify = null; } if (ChallengeImage != null) { ChallengeImage.Dispose(); ChallengeImage = null; } if (ChallengeText != null) { ChallengeText.Dispose(); ChallengeText = null; } if (cnsTableViewHeight != null) { cnsTableViewHeight.Dispose(); cnsTableViewHeight = null; } if (cnsWebViewHeight != null) { cnsWebViewHeight.Dispose(); cnsWebViewHeight = null; } if (CollectionViewHeightConstraint != null) { CollectionViewHeightConstraint.Dispose(); CollectionViewHeightConstraint = null; } if (Content != null) { Content.Dispose(); Content = null; } if (ImageHeightConstraint != null) { ImageHeightConstraint.Dispose(); ImageHeightConstraint = null; } if (ImageOverlayView != null) { ImageOverlayView.Dispose(); ImageOverlayView = null; } if (imgTopLock != null) { imgTopLock.Dispose(); imgTopLock = null; } if (lblTopTime != null) { lblTopTime.Dispose(); lblTopTime = null; } if (lblTopUnlocksIn != null) { lblTopUnlocksIn.Dispose(); lblTopUnlocksIn = null; } if (MCCollectionView != null) { MCCollectionView.Dispose(); MCCollectionView = null; } if (PointsImage != null) { PointsImage.Dispose(); PointsImage = null; } if (PointsText != null) { PointsText.Dispose(); PointsText = null; } if (ScrollView != null) { ScrollView.Dispose(); ScrollView = null; } if (SelectAllThatApply != null) { SelectAllThatApply.Dispose(); SelectAllThatApply = null; } if (SubmitButton != null) { SubmitButton.Dispose(); SubmitButton = null; } if (TableView != null) { TableView.Dispose(); TableView = null; } if (TimeText != null) { TimeText.Dispose(); TimeText = null; } if (WebView != null) { WebView.Dispose(); WebView = null; } }
void ReleaseDesignerOutlets() { if (AspectHeight != null) { AspectHeight.Dispose(); AspectHeight = null; } if (ChallengeImage != null) { ChallengeImage.Dispose(); ChallengeImage = null; } if (ChallengeText != null) { ChallengeText.Dispose(); ChallengeText = null; } if (cnsWebViewHeight != null) { cnsWebViewHeight.Dispose(); cnsWebViewHeight = null; } if (CollectionView != null) { CollectionView.Dispose(); CollectionView = null; } if (CollectionViewDescription != null) { CollectionViewDescription.Dispose(); CollectionViewDescription = null; } if (HashBottomText != null) { HashBottomText.Dispose(); HashBottomText = null; } if (HashtagCopiedText != null) { HashtagCopiedText.Dispose(); HashtagCopiedText = null; } if (HashText != null) { HashText.Dispose(); HashText = null; } if (HashTitle != null) { HashTitle.Dispose(); HashTitle = null; } if (InstaCollectionView != null) { InstaCollectionView.Dispose(); InstaCollectionView = null; } if (InstaCollectionViewAspect != null) { InstaCollectionViewAspect.Dispose(); InstaCollectionViewAspect = null; } if (MainScroll != null) { MainScroll.Dispose(); MainScroll = null; } if (MainSrollBottomConstraint != null) { MainSrollBottomConstraint.Dispose(); MainSrollBottomConstraint = null; } if (PointsImage != null) { PointsImage.Dispose(); PointsImage = null; } if (PointsText != null) { PointsText.Dispose(); PointsText = null; } if (SubmitButton != null) { SubmitButton.Dispose(); SubmitButton = null; } if (TagCopiedView != null) { TagCopiedView.Dispose(); TagCopiedView = null; } if (TimeText != null) { TimeText.Dispose(); TimeText = null; } if (WebView != null) { WebView.Dispose(); WebView = null; } }