// Update is called once per frame void FixedUpdate() { myConn.ReadSocket(); attenion = myConn.attention; if (attenion > 50) { GetComponent <Slider>().value++; } }
// Update is called once per frame void Update() { myConn.ReadSocket(); }
// Update is called once per frame void FixedUpdate() { myConn.ReadSocket(); Attention = myConn.attention; Meditation = myConn.meditation; }