public void LookForMessage() { string messsage = connection.GetMessage(); //GameObject.Find("destroyer").GetComponentInChildren<Text>().text = "length: " + messsage.Length + "content: " + messsage; DecodePoints.DecodeAndCreate(messsage); }
public void OnValueChanged(float newValue) { z = newValue; Text myText; myText = GameObject.Find("distance").GetComponent <Text>(); myText.text = "Distance: " + z; DecodePoints.SetZ(z); }